CallbackHandler<CallbackInputType, CallbackReturnType> class

Interface for handling callbacks T is the type of callback function to be handled

Implemented types

Constructors

CallbackHandler()

Properties

hashCode int
The hash code for this object.
no setterinherited
map FastMap<int, CallbackWithReturn<CallbackInputType, CallbackReturnType>>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Clear all registered callbacks
override
invoke(CallbackInputType input) → void
Invoke a registered callback
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(CallbackWithReturn<CallbackInputType, CallbackReturnType> callback) → void
Register a callback
override
toString() String
A string representation of this object.
inherited
unregister(CallbackWithReturn<CallbackInputType, CallbackReturnType> callback) → void
Unregister a callback
override

Operators

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