capitalize property

String capitalize

Uppercase first letter inside each word in string Example: your name => Your Name

Implementation

String get capitalize {
  if (isEmpty) return this;
  return split(' ').map((value) => value.capitalizeFirst).join(' ');
}