NetworkResult<G, E> class
abstract
Constructors
- NetworkResult.badRequestData(Exception exception)
-
factory
- NetworkResult.cancelled()
-
factory
- NetworkResult.good(G value, HttpStatus httpStatus)
-
factory
- NetworkResult.httpError(E value, HttpStatus httpStatus)
-
factory
- NetworkResult.httpErrorMalformed(String value, HttpStatus httpStatus, Exception exception)
-
factory
- NetworkResult.ioError(Exception exception)
-
factory
- NetworkResult.malformed(String value, HttpStatus httpStatus, Exception exception)
-
factory
- NetworkResult.timeout(Duration? timeout)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getErrorMessageOrNull(
) → String? -
getErrorValueOrNull(
) → E? -
getExceptionOrNull(
) → Exception? -
getGoodValueOrNull(
) → G? -
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