capitalize property

String get capitalize

capitalize each word in the line

Implementation

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