ifSuccess abstract method

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

Implementation

Response<T> ifSuccess(Function(T? payload) callback);