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