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