StateField<T> class

A single unit of output from a StateBloc with added state management capabilities whe registered with a StateBlocImpl.

This class is an interface for StateFieldImpl and contains a factory constructor to instantiate one.

Implemented types
Implementers

Constructors

StateField(String key, String blocKey, Observable<T> inputObservable, {bool derived = false, StateBlocImpl stateBloc})
Instantiates a StateFieldImpl with given parameters. [...]
factory

Properties

derived bool
True if this Fields output is derived from the output of another Field. [...]
read-only, inherited
fieldID FieldID
The FieldID for this Field. [...]
read-only, inherited
fieldStateObservable ValueObservable<StateFieldState<T>>
The Observable carrying the StateFieldStates derived from the output of this StateField. [...]
read-only
fieldView FieldView<T>
A FieldView of this Field. [...]
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
lastFieldState StateFieldState<T>
The last value emitted from fieldStateObservable. [...]
read-only
lastValue → T
The last/most current value emitted from observable.
read-only, inherited
observable ValueObservable<T>
The Observable carrying the output values of this Field. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

add(T data) → void
Adds data to be emitted by observable. [...]
inherited
dispose() → void
Perform any clean up operations. [...]
inherited
getTypedValueAction(T data) FieldValueAction<T>
Creates a FieldValueAction with the same generic type as this Field (T). [...]
inherited
isValidType(dynamic data) bool
Whether or not data's runtimeType is T or a subtype of T. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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