toCapitalized method

String toCapitalized()

get Capitalized string

Implementation

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