LazxData<T> class

LazxData represent a data with state management integrated.

T represent the type of your data

Inheritance

Constructors

LazxData(T _value)
You can create LazxData with a default value. The default state will be Initial

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state Stream<LxState>
no setterinherited
stateObserver → BehaviorSubject<LxState>
An observer for your state's value
finalinherited
stream Stream<T>
no setter
value → T
A getter to access your data value
no setter

Methods

dispose() → void
Close all the observers
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
push(T newValue, {LxState? lxState}) → void
Set a new value an optionnaly, a new state for your data
setState(LxState lxState) → void
Changed the LxState of your data and triggers all the listeners
toString() String
A string representation of this object.
inherited

Operators

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