onReattempt property

void Function(Request request, int statusCode)? onReattempt
getter/setter pair

A callback triggered when the response of a request has a status code which is present in the reattemptForStatusCodes list.

Implementation

void Function(http.Request request, int statusCode)? onReattempt;