onApiSuccess method

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

Set the onSuccess callback

Implementation

onApiSuccess(Function(Response response, dynamic data) onSuccess) {
  _apiService ??= apiService;
  _apiService!.onSuccess(onSuccess);
}