capitalize method
Implementation
String capitalize() {
if (isNotEmpty) {
return "${this[0].toUpperCase()}${substring(1).toLowerCase()}";
} else {
return "";
}
}
String capitalize() {
if (isNotEmpty) {
return "${this[0].toUpperCase()}${substring(1).toLowerCase()}";
} else {
return "";
}
}