Reducer<Actions, Value> class

Implements a reducer for state management.

Constructors

Reducer(ReducerFunction<Actions, Value> reducer, Value state)
Pass a reducer function and the initial state.

Properties

hashCode int
The hash code for this object.
no setterinherited
reducer ReducerFunction<Actions, Value>
The reducer function.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call() → Value
Retrieves the state.
dispatch(Actions action) → void
Dispatches an action to compute the next state.
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