ifSuccessAsync method

Future<Response<B>> ifSuccessAsync(
  1. Future callback(
    1. B? payload
    )
)

Implementation

Future<Response<B>> ifSuccessAsync(Future Function(B? payload) callback) async {
  var res = await this;
  return await res.ifSuccessAsync(callback);
}