isAlpha property
bool
get
isAlpha
Checks if this string is alphabetic only.
Example: 'abcABC'.isAlpha -> true.
Implementation
bool get isAlpha => RegExp(r'^[a-zA-Z]+$').hasMatch(this);
Checks if this string is alphabetic only.
Example: 'abcABC'.isAlpha -> true.
bool get isAlpha => RegExp(r'^[a-zA-Z]+$').hasMatch(this);