isDigit1to9 function

bool isDigit1to9(
  1. String char
)

Implementation

bool isDigit1to9(String char) {
  final charCode = char.codeUnitAt(0);
  return charCode >= '1'.codeUnitAt(0) && charCode <= '9'.codeUnitAt(0);
}