ProducerLayerObject<Event, Input, Output> class

A class that describes a type that represents a layer object that does not consume state. Contains a machine that does not receive mapped layer state as input and emits output that is reduced into application's state.

Inheritance

Constructors

ProducerLayerObject({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. reducer - 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 ProducerLayerType
override
mapInput(Event event) → dynamic
from MachineLayerType
inherited
mapOutput(Output output) → dynamic
from ProducerLayerType
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