capitalizedFirst property

String capitalizedFirst

Uppercase first letter inside string and let the others lowercase Example: your name => Your name

Implementation

String get capitalizedFirst => isBlank == true
    ? ""
    : length == 1
        ? uppercase
        : this[0].uppercase + substring(1).lowercase;