ApiResult<T> class
sealed
- Implementers
Properties
- dataOrNull → T?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isError → bool
-
no setter
- isSuccess → bool
-
no setter
- message → String
-
no setter
- metadata → ApiResultMetadata?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
ifError(
void callback(String error, String message)) → void -
ifSuccess(
void callback(T? data, String message)) → void -
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 success(T? data, String message, int statusCode), required R error(String error, String message, int? statusCode)}) → R
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited