ifErrorTerminate method

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

Implementation

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