test2XX function

bool test2XX(
  1. String statusCode
)

Implementation

bool test2XX(String statusCode) {
  return statusCode.contains(RegExp(r'^2[0-9]{2}$'));
}