capitalizeFirst property
String
get
capitalizeFirst
Converts the first letter of a string to uppercase and the rest to lowercase. Example: your name => Your name
Implementation
String get capitalizeFirst {
return this[0].toUpperCase() + substring(1).toLowerCase();
}