FutureState<State extends FutureState<State>> class abstract

Extend this class to create a base state class which handles the update logic for FuturePendingAction and FutureFailedAction for all the inheriting classes.

Constructors

FutureState()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
updateOnFailed(FutureFailedAction action) → State
Implement this method to update the state when FutureFailedAction is passed.
updateOnPending(FuturePendingAction action) → State
Implement this method to update the state when FuturePendingAction is passed.

Operators

operator ==(Object other) → bool
The equality operator.
inherited