onError method

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

Set the onError callback for the request

Implementation

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