mapAsyncToResponse<T> method

Future<Response<T>> mapAsyncToResponse<T>(
  1. Future<T> mapper(
    1. B? payload
    )
)

Implementation

Future<Response<T>> mapAsyncToResponse<T>(Future<T> Function(B? payload) mapper) async {
  var res = await this;
  return await res.mapAsync(mapper);
}