VoidAction<TState extends Object?> class
Null safety
- Inheritance
- Object
- ActionBase<
void, TState> - SyncAction<
void, TState> - VoidAction
Constructors
Properties
- cancelled → bool
-
read-only, inherited
-
cubix
→ Cubix<
TState> -
read-only, inherited
- dispatched → bool
-
read-only, inherited
- dispatcher ↔ Dispatcher
-
late, final, inherited
- done → bool
-
read-only, inherited
- error → Object?
-
retrieve error of dispatching if any. An error will be thrown when trying access this prop before dispatching
read-only, inherited
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- result → void
-
retrieve action result after dispatching. An error will be thrown when trying access this prop before dispatching
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- state ↔ TState
- retrieve current state of the cubix
- success → bool
-
read-only, inherited
Methods
-
all<
TKey> (Map< TKey, Object?> awatiable) → Future<Map< TKey, Object?> > -
@protected, inherited
-
allSettled<
TKey> (Map< TKey, Object?> awatiable) → Future<Map< TKey, Object?> > -
@protected, inherited
-
body(
) → void -
override
-
cancel(
) → void -
inherited
-
canDispatch(
Cubix cubix) → bool -
inherited
-
dispatch<
TActionResult> (ActionBase< TActionResult, TState> action, {CancelToken? cancelToken}) → TActionResult -
@protected, inherited
-
dispose(
) → void -
inherited
-
inject(
DependencyResolver resolver) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
on(
{VoidCallback? done, VoidCallback? success, VoidCallback? dispose, void error(Object)?}) → void -
inherited
-
onBind(
Dispatcher dispatcher) → void -
inherited
-
onDispatch(
) → void -
@protected, inherited
-
onDispose(
) → void -
@protected, inherited
-
onDone(
) → void -
@protected, inherited
-
onError(
Object error) → void -
@protected, inherited
-
onInit(
) → void -
@protected, inherited
-
onSuccess(
) → void -
@protected, inherited
-
race<
TKey> (Map< TKey, Object?> awatiable) → Future<Map< TKey, Object?> > -
@protected, inherited
-
resolve<
T extends IDependency> (T create(), {Object? family}) → T -
inherited
-
selfDispatch(
Cubix< TState> cubix, {CancelToken? cancelToken}) → void -
dispatch this action with specified cubix
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
-
wait(
) → Future< void> -
wait until action dispatching is completed
inherited
-
watch(
List< Cubix> cubixes) → Future<void> -
watch changes of cubixes, unlikely cubix.watch(), this method returns a future object that is completed when given cubixes are changed
inherited
-
when(
bool predicate(Object action), {Cubix? cubix}) → Future< Object> -
this method returns a future object that is completed when the dispatching action is satisfied the given predicate
@protected, inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited