toCapitalize method
Implementation
String toCapitalize() {
if (isEmpty) return '';
return "${this[0].toUpperCase()}${substring(1).toLowerCase()}";
}
String toCapitalize() {
if (isEmpty) return '';
return "${this[0].toUpperCase()}${substring(1).toLowerCase()}";
}