capitalizeFirstLetter method
Implementation
String capitalizeFirstLetter() {
if (isEmpty) {
return this;
}
return this[0].toUpperCase() + substring(1);
}
String capitalizeFirstLetter() {
if (isEmpty) {
return this;
}
return this[0].toUpperCase() + substring(1);
}