isTitleCase method
Implementation
bool isTitleCase() {
if (isEmpty) {
return false;
}
if (trimLeft().isEmpty) {
return false;
}
final firstLetter = trimLeft().substring(0, 1);
if (double.tryParse(firstLetter) != null) {
return false;
}
return firstLetter.toUpperCase() == substring(0, 1);
}