ucfirst static method

String ucfirst(
  1. String value
)

Uppercases the first character of value.

Implementation

static String ucfirst(String value) =>
    value.isEmpty ? value : '${value[0].toUpperCase()}${value.substring(1)}';