toSentenceCase property
String
get
toSentenceCase
Converts the string to sentence case (first letter capitalized, rest lowercase).
Implementation
String get toSentenceCase =>
isNotEmpty ? this[0].toUpperCase() + substring(1).toLowerCase() : '';