onUndefinedResponse method
Handle the undefined response's for HTTP requests.
The data parameter contains what was returned from your decoder.
Implementation
void onUndefinedResponse(
    dynamic data, Response response, BuildContext? context) {}Handle the undefined response's for HTTP requests.
The data parameter contains what was returned from your decoder.
void onUndefinedResponse(
    dynamic data, Response response, BuildContext? context) {}