BitState<V, L> class
abstract
Constructors
- BitState.data(V data)
-
factory
- BitState.error(dynamic e)
-
factory
- BitState.loading(L? loading)
-
factory
Properties
Methods
-
hasSameData(
BitState other) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
R> ({required R onLoading(L? loading), required R onError(dynamic error), required R onData(V data)}) → R -
whenData<
R> (R onData(V data)) → R? -
whenOrNull<
R> ({R onLoading(L? loading)?, R onError(dynamic error)?, R onData(V data)?}) → R?
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited