ModResourceResult<T> class
Model used to wrap operation result
Constructors
- ModResourceResult({ResourceState state = ResourceState.LOADING, T? data, ThirdPartyErrorModel? error})
Properties
- data ↔ T?
-
getter/setter pair
- error ↔ ThirdPartyErrorModel?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state ↔ ResourceState
-
getter/setter pair
Methods
-
hasData(
) → bool -
hasDataButEmpty(
) → bool -
hasError(
) → bool -
isError(
) → bool -
isSuccess(
) → bool -
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