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