isAlpha property

bool get isAlpha

Returns true if all the characters are alphabets letter (a-z).

print('Activity'.isAlpha); // true
print('Activity111'.isAlpha); // false

Implementation

bool get isAlpha => RegExp(r'^\p{L}+$', unicode: true).hasMatch(this);