toSentenceCase property
String
toSentenceCase
Capitalize first letter of String and convert rest of string into lower case
Implementation
String get toSentenceCase =>
isNotEmpty ? this[0].toUpperCase() + substring(1).toLowerCase() : '';