flatMapToResponse<T> method

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

Implementation

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