isDigit static method

bool isDigit(
  1. String ch
)

Implementation

static bool isDigit(String ch) {
  int charCode = ch.charCode;
  if (charCode >= 0x0030 && charCode <= 0x0039) return true;
  return false;
}