Dispatcher class Null safety
A class that contains action dispatching info and methods to controller dispatching flow
Constructors
-
Dispatcher({required Cubix cubix, required ActionBase action, required CancelToken cancelToken, required List<
Dispatcher> dispatching, required ActionData data})
Properties
- action → ActionBase
-
dispatching action object
final
- cancelled → bool
-
read-only
- cancelToken → CancelToken
-
cancel token is passed from cubix.dispatch() method
final
- cubix → Cubix
-
final
- data → ActionData
-
persistent data for dispatching calls
final
-
dispatching
→ List<
Dispatcher> -
contains all dispatching dispatchers
final
- done → bool
-
read-only
- error → Object?
-
read-only
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- result → Object?
-
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
cancel(
) → void -
dispose(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
on(
{VoidCallback? success, VoidCallback? end, VoidCallback? done, VoidCallback? cancel, VoidCallback? dispose, void error(Object)?}) → void -
onDone(
Object? error, Object? result) → void -
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited