FutureResponse extension
Future response extension maps the ResponseExtension methods to the result
of a Future that yields a Response
.
- on
-
- Future<
Response>
- Future<
Properties
Methods
-
as<
T> (T f(Map< String, dynamic> e)) → Future<T> - Cast the jsonBody as Type by applying the transformation function, as a result of future.
-
asIterable<
T> (T f(Map< String, dynamic> e)) → Future<Iterable< T> > - Cast the jsonBody as a lazy Iterable of Type, as a result of a future.
-
asList<
T> (T f(Map< String, dynamic> e)) → Future<List< T> > - Cast the jsonBody as a List of Type, as a result of a future.