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