capitalizeFirstLetter method

String capitalizeFirstLetter()

Implementation

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