toProperCase static method

String toProperCase(
  1. String? sentence
)

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

If sentence is null then an empty String is returned.

Implementation

static String toProperCase(String? sentence) => Style.toProperCase(sentence);