ActionResult<T> class

Returned when the user does an Action.

Constructors

ActionResult({required ActionResultState state, T? object})
Creates a new ActionResult instance.
const
ActionResult.failed({T? object})
Creates a new ActionResult instance with the state being ActionResultState.failed.
const
ActionResult.needAction({T? object})
Creates a new ActionResult instance with the state being ActionResultState.needAction.
const
ActionResult.success({T? object})
Creates a new ActionResult instance with the state being ActionResultState.success.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
object → T?
The result object.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state ActionResultState
The result state.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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