ApiError<T> class
final
Constructors
Properties
- dataOrNull → T?
-
no setterinherited
- error → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isError → bool
-
no setterinherited
- isSuccess → bool
-
no setterinherited
- message → String
-
final
- meta → ApiResultMetadata?
-
final
- metadata → ApiResultMetadata?
-
no setterinherited
-
raw
→ Map<
String, dynamic> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int?
-
final
Methods
-
ifError(
void callback(String error, String message)) → void -
inherited
-
ifSuccess(
void callback(T? data, String message)) → void -
inherited
-
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 -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited