Response<T> class
abstract
- Available extensions
Constructors
- Response()
Properties
-
errors
→ List<
ErrorDetails> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isError → bool
-
no setter
- payload → T?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
flatAndCollect<
B, X> (Iterable< X> source, Response<B> mapper(X source)) → Response<List< B> > -
flatAndCollectAsync<
B, X> (Iterable< X> source, Future<Response< mapper(X source)) → Future<B> >Response< List< >B> > -
flatMap<
B> (Response< B> mapper(T? t)) → Response<B> -
flatMapAsync<
B> (Future< Response< mapper(T? t)) → Future<B> >Response< B> > -
hasError(
int code) → bool -
ifError(
dynamic callback(T? payload), {int? specificError}) → Response< T> -
ifErrorAsync(
Future callback(T? payload), {int? specificError}) → Future< Response< T> > -
ifSuccess(
dynamic callback(T? payload)) → Response< T> -
ifSuccessAsync(
Future callback(T? payload)) → Future< Response< T> > -
map<
B> (B mapper(T? t)) → Response< B> -
mapAsync<
B> (Future< B> mapper(T? t)) → Future<Response< B> > -
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