VoidAsyncAction<TState> class Null safety

Inheritance

Constructors

VoidAsyncAction()

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 Future<void>?
retrieve action result after dispatching. An error will be thrown when trying access this prop before dispatching
read-only, inherited
rules List<Rule>
dispatching rules. Refer debounce(), throttle(), sequential() rules for further info
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
@protected, @protected, read / write, inherited
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() Future<void>
@protected, inherited
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
inherited
toString() String
A string representation of this object. [...]
inherited
wait() Future<void>
wait until action dispatching is completed. The future object is completed with the action result if the action dispatches successfully, unless it is completed with an error
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