isOk static method

bool isOk(
  1. Response resp
)

Implementation

static bool isOk(Response resp) {
  return resp.statusCode >= 200 && resp.statusCode < 300;
}