toCapitalized method

String toCapitalized()

Implementation

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