isAlNum property
bool
get
isAlNum
True if all characters are alphanumeric (letters or digits).
(Compat: this used to be named isNumber in your code; kept both.)
Implementation
bool get isAlNum => RegExp(r'^[\p{L}\p{N}]+$', unicode: true).hasMatch(this);