capitalizeFirst property
String
get
capitalizeFirst
Implementation
String get capitalizeFirst {
if (isEmpty || length == 1) return this;
return this[0].toUpperCase() + substring(1).toLowerCase();
}