ifErrorAsync method

Future<Response<B>> ifErrorAsync(
  1. Future callback(
    1. B? payload
    ), {
  2. int? specificError,
})

Implementation

Future<Response<B>> ifErrorAsync(Future Function(B? payload) callback, {int? specificError}) async {
  var res = await this;
  return res.ifErrorAsync(callback, specificError: specificError);
}