onError method

dynamic onError(
  1. dynamic onError(
    1. DioException dioException
    )
)
inherited

Set the onError callback for the request

Implementation

onError(Function(DioException dioException) onError) {
  _onErrorEvent = onError;
}