Result<T> class

Implementers

Constructors

Result({T? data, dynamic errorData, Response? response, Exception? exception, int? statusCode = 200, String? statusMessage = ''})
Result.cache({T? data, Exception? exception})
factory
Result.error({Exception? exception})
factory
Result.localError({Exception? exception})
factory
Result.localSuccess({T? data})
factory
Result.network({T? data, T? errorData, Response? response, Exception? exception, int? statusCode, String? statusMessage})
factory
Result.success({T? data})
factory

Properties

data ↔ T?
getter/setter pair
errorData ↔ dynamic
getter/setter pair
exception Exception?
getter/setter pair
hasData bool
no setter
hashCode int
The hash code for this object.
no setterinherited
isConnectionError bool
no setter
isError bool
no setter
isLocalError bool
no setter
isLocalSuccess bool
no setter
isSuccess bool
no setter
response Response?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
getter/setter pair
statusMessage String?
getter/setter pair

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