cToCapitalized property

String get cToCapitalized

Converts the first character of the string to uppercase and the rest to lowercase.

Implementation

String get cToCapitalized =>
    length > 0 ? '${this[0].toUpperCase()}${substring(1).toLowerCase()}' : '';