withFirstLetterAsUpperCase method
Converts the first letter of the string to uppercase.
The first character is taken as a whole rune, so letters outside the Basic Multilingual Plane (stored as two UTF-16 code units) are converted too.
The same as capitalize.
Implementation
String withFirstLetterAsUpperCase() {
if (isEmpty) return this;
final first = _firstRune();
return first.toUpperCase() + substring(first.length);
}