firstLetterToUpper function

String firstLetterToUpper(
  1. String text
)

Implementation

String firstLetterToUpper(String text) {
  return '${text[0].toUpperCase()}${text.substring(1)}';
}