toSentenceCase property
String
get
toSentenceCase
Implementation
String get toSentenceCase {
if (this == null || this?.isEmpty == true) return '';
return this!.trimLeft()[0].toUpperCase() + this!.trimLeft().substring(1).toLowerCase();
}