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