The maximum number of redirects to follow when followRedirects is true.
If this number is exceeded the BaseResponse future will signal a
RedirectException. Defaults to 5.
Source
int get maxRedirects => _maxRedirects;
Source
set maxRedirects(int value) {
_checkFinalized();
_maxRedirects = value;
}