toProperCase method

String toProperCase()

Converts the String to proper case by capitalising the first letter of each word and forcing all other characters to lower case.

Example:

"one two".toProperCase();
-> "One Two"

Implementation

String toProperCase() => Style.toProperCase(this);