Action<T> class

Indicates that something that could potentially affect the application state.

All Actions must either extend or implement this class.

Contains an optional payload, data with any important information relating to the Action. If the Action does not require a payload data will be null.

Implementers
Annotations
  • @immutable

Constructors

Action({T data})
const

Properties

data → T
The payload. May be null.
final
hashCode int
The hashCode of an Action is derived from the data fields hashCode and the generic type parameter of this instance.
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
Actions are equal if they both have equal generic type parameters (T) and data fields.
override