isInt method
Returns true
if the string can be converted to an integer, false
otherwise.
Implementation
bool isInt() {
return int.tryParse(this) != null;
}
Returns true
if the string can be converted to an integer, false
otherwise.
bool isInt() {
return int.tryParse(this) != null;
}