ActionDispatcher<P> class

ActionDispatcher dispatches an action with the name provided to the constructor and the payload supplied when called. You will notice ActionDispatcher is an object, however it is to be used like a function. In the following example increment is an action dispatcher, that when called dispatches an action to the redux store with the name increment and the payload 3.

store.actions.increment(3);

Constructors

ActionDispatcher(String _name)

Properties

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

Methods

call(P payload) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setDispatcher(Dispatcher dispatcher) → void
toString() String
A string representation of this object.
inherited

Operators

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