NativeCallable<T extends Function> class final

A native callable which listens for calls to a native function.

Creates a native function linked to a Dart function, so that calling the native function will call the Dart function in some way, with the arguments converted to Dart values.

Annotations
  • @Since('3.1')

Constructors

NativeCallable.listener(@DartRepresentationOf("T") Function callback)
Constructs a NativeCallable that can be invoked from any thread.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
nativeFunction Pointer<NativeFunction<T>>
The native function pointer which can be used to invoke the callback passed to the constructor.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

close() → void
Closes this callback and releases its resources.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited