toTitleCase method

String toTitleCase()

Converts identifiers and phrases to Title Case.

Implementation

String toTitleCase() => _splitIdentifierWords()
    .map((w) => w[0].toUpperCase() + w.substring(1))
    .join(' ');