upperFirst static method

String upperFirst(
  1. String name
)

Implementation

static String upperFirst(String name) {
  return name[0].toUpperCase() + name.substring(1);
}