ifSuccess method

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

Implementation

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