NetResponse class abstract

Constructors

NetResponse()

Properties

data → dynamic
no setter
error Object?
no setter
hashCode int
The hash code for this object.
no setterinherited
isAccepted bool
no setter
isBadRequest bool
no setter
isCreated bool
no setter
isError bool
no setter
isForbidden bool
no setter
isNotAcceptable bool
no setter
isNotError bool
no setter
isNotFound bool
no setter
isOK bool
no setter
isPreconditionRequired bool
no setter
isUnauthorized bool
no setter
isUnavailableForLegalReasons bool
no setter
isUnknown bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
no setter
statusCode int
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
whenAccepted<T, R>(Future<R> callback(T response)) Future<R?>
whenBadRequest<T, R>(NetResponseWhenCallback<T, R> callback) Future<R?>
whenCreated<T, R>(Future<R> callback(T response)) Future<R?>
whenForbidden<T, R>(NetResponseWhenCallback<T, R> callback) Future<R?>
whenNotAcceptable<T, R>(NetResponseWhenCallback<T, R> callback) Future<R?>
whenNotFound<T, R>(NetResponseWhenCallback<T, R> callback) Future<R?>
whenOK<T, R>(Future<R> callback(T response)) Future<R?>
whenPreconditionRequired<T, R>(NetResponseWhenCallback<T, R> callback) Future<R?>
whenUnauthorized<T, R>(NetResponseWhenCallback<T, R> callback) Future<R?>
whenUnavailableForLegalReasons<T, R>(NetResponseWhenCallback<T, R> callback) Future<R?>
whenUnknown<R>(Future<R> callback(Object err, StackTrace stackTrace)) Future<R?>

Operators

operator ==(Object other) bool
The equality operator.
inherited