MaybeError<T> class

Contains a successful value OR an error.

Constructors

MaybeError.error({required String error, required int statusCode})
MaybeError.responseError(dynamic response)
MaybeError.value(T _value)
const

Properties

detailError String
no setter
error String?
final
hashCode int
The hash code for this object.
no setterinherited
isError bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
final
value → T
no setter

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