NativePort#
Extension to retrieve the native Dart_Port from a SendPort.
Properties#
nativePort extension no setter#
The native port of this SendPort.
The returned native port can for example be used by C code to post
messages to the connected ReceivePort
via Dart_PostCObject() - see
dart_native_api.h.
Only the send ports from the platform classes ReceivePort and RawReceivePort are supported. User-defined implementations of SendPort are not supported.
Available on SendPort, provided by the NativePort extension
Implementation
external int get nativePort;