onError method

dynamic onError(
  1. DioError dioError
)

Handle the DioError response if there is an issue.

Implementation

onError(DioError dioError) {}