Registration class final
What every registry hands back: the way to take the thing registered out again.
The host keeps these for a plugin, so switching the plugin off cancels everything it registered without the plugin keeping a list of its own. Cancelling twice is not an error — a plugin torn down twice should not be.
Constructors
- Registration(void onCancel())
-
A registration that runs
onCancelthe first time it is cancelled.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCanceled → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancel(
) → void -
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