BaseViewStateLoading<T> class
final
π Loading state - indicates async operation is in progress
- Inheritance
-
- Object
- BaseViewState<
T> - BaseViewStateLoading
Constructors
- BaseViewStateLoading()
-
const
Properties
- contentData β T?
-
π Get content data if available, null otherwise
no setterinherited
- errorMessage β String?
-
π Get error message if available, null otherwise
no setterinherited
- hasContent β bool
-
π Check if current state has content
no setterinherited
- hashCode β int
-
The hash code for this object.
no setterinherited
- isError β bool
-
π Check if current state is error
no setterinherited
- isLoading β bool
-
π Check if current state is loading
no setterinherited
-
props
β List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType β Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify β bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.no setterinherited
Methods
-
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 loading(), required R error(String message), required R content(T data)}) β R -
π Pattern matching method for handling different states
inherited
Operators
-
operator ==(
Object other) β bool -
The equality operator.
inherited