BaseViewStateLoading<T> class final

πŸ”„ Loading state - indicates async operation is in progress

Inheritance

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, the toString method will be overridden to output this instance's props.
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