ValidatedResponse<U, T> class
abstract
A validated Dio
response
U
is the raw response data typeT
is the transformed response data type
- Implementers
Constructors
- ValidatedResponse()
-
Constructor
const
- ValidatedResponse.failure(Object error, StackTrace stacktrace, {Response? response})
-
Create a validation failure response
factory
-
ValidatedResponse.success(T data, Response<
U> response) -
Create a validation success response
factory
Properties
-
failure
→ InvalidResponse<
U, T> ? -
Get the failure data, if available
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- response → Response?
-
The raw response data, if available
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
success
→ ValidResponse<
U, T> ? -
Get the success data, if available
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