fromCamelToCapitalize property

String get fromCamelToCapitalize

Capitalize Text

Implementation

String get fromCamelToCapitalize {
  List<String> strArr = trim().split(" ");

  strArr = strArr.map((e) {
    if (e == "") return "";
    final String index = e[0];
    return e.replaceFirst(index, ' ${index.toUpperCase()}');
  }).toList();

  return strArr.join(" ");
}