toTitleCase method

String toTitleCase()

Implementation

String toTitleCase() => split(' ').map((word) => word.capitalize()).join(' ');