upperFirst property

String get upperFirst

Implementation

String get upperFirst {
  var result = '';
  if (isNotEmpty) {
    result = this[0].toUpperCase();
    if (length > 1) {
      result += substring(1);
    }
  }
  return result;
}