NativeApi class

Utilities for accessing the Dart VM API from Dart code or from C code via dart_api_dl.h.

Constructors

NativeApi()

Properties

hashCodeint
read-only, inherited
The hash code for this object. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
toString() → String
inherited
A string representation of this object. [...]

Operators

operator ==(Object other) → bool
inherited
The equality operator. [...]

Static Properties

closeNativePortPointer<NativeFunction<Int8 Function(Int64)>>
read-only
A function pointer to bool Dart_CloseNativePort(Dart_Port native_port_id) in dart_native_api.h.
initializeApiDLDataPointer<Void>
read-only
Pass this to Dart_InitializeApiDL in your native code to enable using the symbols in dart_api_dl.h.
majorVersionint
read-only
On breaking changes the major version is increased. [...]
minorVersionint
read-only
On backwards compatible changes the minor version is increased. [...]
newNativePortPointer<NativeFunction<Int64 Function(Pointer<Uint8>, Pointer<NativeFunction<Dart_NativeMessageHandler>>, Int8)>>
read-only
A function pointer to [...]
postCObjectPointer<NativeFunction<Int8 Function(Int64, Pointer<Dart_CObject>)>>
read-only
A function pointer to bool Dart_PostCObject(Dart_Port port_id, Dart_CObject* message) in dart_native_api.h.

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-ffi/NativeApi-class.html