FunctionAction<TState> class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
id
→ String
-
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(Context<TState> context)
→ Stream<Updater<TState>>
-
An action execution will update the
context
's state by producing a stream of updates.
override
-
canExecute(TState state)
→ bool
-
Allows to block execution if the state isn't valid.
override
-
failed(Context<TState> context, TState initialState, dynamic error, StackTrace stackTrace)
→ Stream<Updater<TState>>
-
If the execution failed because of the given
error
and stackTrace
, then this method
is invoked with the initialState
, which is a snapshot of the application state before
the execution of the action.
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
throwNotExecutable()
→ dynamic
-
inherited
-
toString()
→ String
-
A string representation of this object.
override