capitalize property

String capitalize

Capitalize the first letter in a string.

Implementation

String get capitalize {
  return (length > 1) ? this[0].toUpperCase() + substring(1) : toUpperCase();
}