onApiError method

dynamic onApiError(
  1. dynamic onError(
    1. dynamic error
    )
)

Set the onError callback

Implementation

onApiError(Function(dynamic error) onError) {
  _apiService ??= apiService;
  _apiService!.onError(onError);
}