toTitleCase method

String toTitleCase()

Converts string to Title Case (capitalize every word). Example: "edit_item""Edit Item"

Implementation

String toTitleCase() {
  return _splitWords().map((w) => _capitalize(w)).join(' ');
}