titleCase property
String
get
titleCase
Implementation
String get titleCase {
if (this.isEmpty) {
return '';
}
return replaceAll(RegExp(' +'), ' ').split(' ').map((str) => str.capitalize).join(' ');
}