toUppercaseFirstLetter method

String toUppercaseFirstLetter(
  1. String str
)

Implementation

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