upperCaseFirst static method

String upperCaseFirst(
  1. String value
)

Helper function to convert the first char of a string to uppercase value the string to uppercase

Implementation

static String upperCaseFirst(String value) {
  return "${value[0].toUpperCase()}${value.substring(1).toLowerCase()}";
}