isAlpha property
bool
get
isAlpha
Checks if the string contains only alphabetic characters.
Example:
'Hello'.isAlpha; // true
'Hello123'.isAlpha; // false
Implementation
bool get isAlpha => RegExp(r'^[a-zA-Z]+$').hasMatch(this);