isLettersOnly property
Returns true
if the String
contains only letters (Latin or Greek).
Example
String text = 'hello world';
bool isLettersOnly = text.isLettersOnly(); // Returns true
Implementation
bool get isLettersOnly {
if (isBlank) {
return false;
}
return onlyLetters.length == length;
}