isDigit function

bool isDigit(
  1. String character
)

Implementation

bool isDigit(String character) {
  assert(character.length == 1);
  final code = character.codeUnitAt(0);
  return 0x30 <= code && code <= 0x39;
}