isSuccessful method Null safety
- [int max = 202]
Is the response considered successful
By default it will accept the following 2xx status coded only as successful:
- 200 OK
- 201 Created
- 202 Accepted
Implementation
isSuccessful([int max = 202]) => statusCode!.inRange(200, max);