isDigits property
bool
get
isDigits
Whether this string contains only digits.
Implementation
bool get isDigits => RegExp(r'^\d+$').hasMatch(this);
Whether this string contains only digits.
bool get isDigits => RegExp(r'^\d+$').hasMatch(this);