LocalErrorResult<T> class

Represents a local error result (e.g., a caching error).

Inheritance

Constructors

LocalErrorResult.new({Exception? exception, dynamic errorData})
Constructor for a local error result.

Properties

data ↔ T?
Holds the data returned from the operation.
getter/setter pairinherited
errorData ↔ dynamic
Holds additional error information, if any.
getter/setter pairinherited
exception Exception?
Exception if an error occurred.
getter/setter pairinherited
hasData bool
Checks if the result contains data.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isConnectionError bool
Checks if the error is a connection error (specific to Dio exceptions).
no setterinherited
isError bool
Checks if the result represents an error.
no setterinherited
isLocalError bool
Checks if the result is a local error.
no setterinherited
isLocalSuccess bool
Checks if the result is a local success.
no setterinherited
isSuccess bool
Determines if the result is successful (no errors).
no setterinherited
response Response?
The response object from the API call.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
HTTP status code for network operations.
getter/setter pairinherited
statusMessage String?
HTTP status message for network operations.
getter/setter pairinherited

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