toTitleCase method
Converts this String to title casing.
// 'Here Is Some Text, FYI. I Hope You Like It! Peace'
'here is some text, FYI. I hope you like it! peace'.toTitleCase();
See also:
Implementation
String toTitleCase({
bool convertAcryonyms = false,
String? locale,
}) =>
ToTitleCaseTransformation(convertAcronyms: convertAcryonyms)
.transform(this, locale ?? Intl.getCurrentLocale());