isSuccessfulStatusCode method

bool isSuccessfulStatusCode(
  1. HttpStatus statusCode
)

Implementation

bool isSuccessfulStatusCode(HttpStatus statusCode) {
  return statusCode == HttpStatus.OK || statusCode == HttpStatus.CREATED;
}