ConsumerLayerObject<Event, Input, Output> class
A class that describes a type that represents a layer object that does not produce events. Contains a machine that receives mapped layer state as input and does not emit output that is reduced into application's state.
- Inheritance
-
- Object
- MachineLayerType<
Event, Input, Output> - ConsumerLayerType<
Event, Input, Output> - ConsumerLayerObject
Constructors
-
ConsumerLayerObject({required Machine<
Input, Output> machine, required dynamic mapper}) -
machine
- Layer's machine that receives the result of mapper method and emits event objects that are sent into reducer method.mapper
- Triggered every time the global state is changed.
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
-
machine(
) → Machine< Input, Output> -
from ConsumerLayerType
override
-
mapInput(
Event event) → dynamic -
from ConsumerLayerType
override
-
mapOutput(
Output output) → dynamic -
A mapper that receives machine's output and maps it into application's event.
inherited
-
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