stringUpperFirst function

String stringUpperFirst(
  1. String value
)

Implementation

String stringUpperFirst(String value) {
  // ignore: unnecessary_null_comparison
  return value != null ? value[0].toUpperCase() + value.substring(1) : '';
}