Interface defining the contract for callback handlers.
Implement this interface to create custom callback handling behavior.
Type parameters:
CallbackInputType- The type of input accepted by callbacksCallbackReturnType- The type of value returned by callbacks
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → void - Clear the object
-
invoke(
CallbackInputType input) → void -
Invokes all registered callbacks with the given
input. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
CallbackWithReturn< CallbackInputType, CallbackReturnType> callback) → void - Registers a new callback function.
-
toString(
) → String -
A string representation of this object.
inherited
-
unregister(
CallbackWithReturn< CallbackInputType, CallbackReturnType> callback) → void - Removes a previously registered callback.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited