isEnglish property
bool
isEnglish
Detects whether the string is english alphabet.
Implementation
bool get isEnglish {
RegExp regExp = RegExp(r'\w+\s*$');
return regExp.hasMatch(this);
}
Detects whether the string is english alphabet.
bool get isEnglish {
RegExp regExp = RegExp(r'\w+\s*$');
return regExp.hasMatch(this);
}