capitalize property

String capitalize

capitalizes the string and returns it

Implementation

String get capitalize {
  if (this.isEmpty) {
    return '';
  }

  return this[0].toUpperCase() + this.substring(1);
}