toCapitalized method

String toCapitalized()

Implementation

String toCapitalized() {
  return '${substring(0, 1).toUpperCase()}${substring(1)}';
}