onUndefinedResponse method

dynamic onUndefinedResponse(
  1. dynamic data,
  2. Response response,
  3. BuildContext? context
)

Handle the undefined response's for HTTP requests. The data parameter contains what was returned from your decoder.

Implementation

onUndefinedResponse(dynamic data, Response response, BuildContext? context) {}