Wake class final

A callback that tells the caller when work is ready.

The callback runs asynchronously in the isolate and zone that registered it, after native queues the call.

See mln_wake in the C API reference.

Constructors

Wake({WakeCallback? callback})
const
Wake.native({required NativePointer callback, NativePointer userData = NativePointer.nullPointer, NativePointer releaseUserData = NativePointer.nullPointer})
Creates a native registration from callback, userData, and releaseUserData, which native code in the host supplies. The binding copies them unchanged.

Properties

callback → WakeCallback?
Null to turn the wake off.
final
hashCode → int
The hash code for this object.
no setterinherited
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
toString() → String
A string representation of this object.
inherited

Operators

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