toCapitalized method

String toCapitalized()

Implementation

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