isdigit method

bool isdigit(
  1. String c
)

Checks if the character is a decimal digit (0-9).

Implementation

bool isdigit(String c) {
  int code = _getCode(c);
  return code >= 48 && code <= 57;
}