titleCase property
String
get
titleCase
Convert this
to a title case string and return it
Implementation
String get titleCase {
if (this.isEmpty) {
return '';
}
return replaceAll(RegExp(' +'), ' ')
.split(' ')
.map((str) => str.capitalize)
.join(' ');
}