Properties
cancelled
→ bool
is action dispatching cancelled
no setter inherited
cubix
→ Cubix <TState >
no setter inherited
dispatched
→ bool
no setter inherited
dispatcher
↔ Dispatcher
late final inherited
done
→ bool
no setter inherited
error
→ Object ?
retrieve error of dispatching if any. An error will be thrown when trying access this prop before dispatching
no setter inherited
hashCode
→ int
The hash code for this object.
no setter inherited
result
→ Future <void > ?
retrieve action result after dispatching. An error will be thrown when trying access this prop before dispatching
no setter inherited
rules
→ List <Rule >
dispatching rules. Refer debounce(), throttle(), sequential() rules for further info
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
state
↔ TState
retrieve current state of the cubix
getter/setter pair inherited
success
→ bool
no setter inherited
Methods
all <TKey > (Map <TKey , Object ? > awatiable )
→ Future <Map <TKey , Object ? > >
inherited
allSettled <TKey > (Map <TKey , Object ? > awatiable )
→ Future <Map <TKey , Object ? > >
inherited
body ()
→ Future <void >
inherited
cancel ()
→ void
inherited
canDispatch (Cubix cubix )
→ bool
inherited
dispatch <TActionResult > (ActionBase <TActionResult , TState > action , {CancelToken ? cancelToken })
→ TActionResult
inherited
dispose ()
→ void
inherited
inject (DependencyResolver resolver )
→ void
inherited
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent 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
inherited
onDispose ()
→ void
inherited
onDone ()
→ void
inherited
onError (Object error )
→ void
inherited
onInit ()
→ void
inherited
onSuccess ()
→ void
inherited
race <TKey > (Map <TKey , Object ? > awatiable )
→ Future <Map <TKey , Object ? > >
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. 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
inherited