isNumeric property
bool
get
isNumeric
Checks if the string contains only numeric characters.
Implementation
bool get isNumeric => RegExp(r'^\d+$').hasMatch(this);
Checks if the string contains only numeric characters.
bool get isNumeric => RegExp(r'^\d+$').hasMatch(this);