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