ifError method

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

Implementation

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