onSuccess method

dynamic onSuccess(
  1. dynamic onSuccess(
    1. Response response,
    2. dynamic data
    )
)

Set the onSuccess callback for the request

Implementation

onSuccess(Function(Response response, dynamic data) onSuccess) {
  _onSuccessEvent = onSuccess;
}