toUpperFirstCase method

String toUpperFirstCase()

hello_word_good => Hello_word_good

Implementation

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