withFirstLetterAsUpperCase method
Converts the first letter of the string to uppercase.
The same as capitalize.
Implementation
String withFirstLetterAsUpperCase() {
if (isEmpty) return this;
return this[0].toUpperCase() + substring(1);
}
Converts the first letter of the string to uppercase.
The same as capitalize.
String withFirstLetterAsUpperCase() {
if (isEmpty) return this;
return this[0].toUpperCase() + substring(1);
}