isNumeric method
Checks if the string contains only numeric characters.
Implementation
bool isNumeric() {
return RegExp(r'^\d+\$').hasMatch(this);
}
Checks if the string contains only numeric characters.
bool isNumeric() {
return RegExp(r'^\d+\$').hasMatch(this);
}