BaseModel<T, E> class
Base class for the library
Properties
- error ↔ E?
-
getter/setter pair
- hasData → bool
-
returns true if itemState is equal to ItemState.hasData and model is not null
no setter
- hasError → bool
-
returns true if itemState is equal to ItemState.hasError
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoading → bool
-
returns true if itemState is equal to ItemState.loading
no setter
- itemState ↔ ItemState
-
getter/setter pair
- model ↔ T?
-
getter/setter pair
- noContent → bool
-
returns true if itemState is equal to ItemState.noContent
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- setError ← E
-
set the base class to it's generic
error
valueno getter - setItemState ← ItemState
-
Set both model and error to null and takes in any ItemState
no getter
- setModel ← T
-
set the base class to it's generic
model
valueno getter
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