capitalizeFirst property

String get capitalizeFirst

capitalize first letter of the string

Implementation

String get capitalizeFirst {
  if (isEmpty) return this;
  return this[0].toUpperCase() + substring(1).toLowerCase();
}