LazxListener class
A LazxListener is a listener that will call a function depending on the LxState of the data.
Constructors
- LazxListener({required LazxState data, LazxListenerBuilder? initial, LazxListenerBuilder? loading, LazxListenerBuilder? success, LazxListenerBuilder? error})
Properties
- data → LazxState
-
The data that will be listened to execute the
builder
functionfinal - error → LazxListenerBuilder?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initial → LazxListenerBuilder?
-
The builder function that will be called each time the data is updated
They're all optional, if none is provided, nothing will be called
final
- loading → LazxListenerBuilder?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- success → LazxListenerBuilder?
-
final
Methods
-
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