isNumber property
bool
get
isNumber
Returns true
if all the characters are alphanumeric
(alphabet letter (a-z) and numbers (0-9)).
print('111Activity'.isAlNum); // true
print('123'.isAlNum); // true
print('This@123'.isAlNum); // false
Implementation
bool get isNumber => RegExp(r'^[\p{L}\p{N}]+$', unicode: true).hasMatch(this);