ifSuccessTerminate method

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

Implementation

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