Callback<T extends NativeType> class

Use this class to register a callback for a specific callback

Constructors

Callback({required void cb(Pointer<T> data)})
Creates a Callback with given parameters to be called after the event for T has happened. Do not forget to register in order to receive the result

Properties

cb ↔ void Function(Pointer<T> data)
callback function to be called after the T event occured
latefinal
hashCode int
The hash code for this object.
no setterinherited
id int
callback id of the type T
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCb({required Pointer<UnsignedChar> data}) → void
When the event occurs, Dispatcher calls this function to call your passed cb
toString() String
A string representation of this object.
inherited

Operators

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