toSentenceCase method

String toSentenceCase({
  1. bool convertAcryonyms = false,
  2. String? locale,
})

Converts this String to sentence casing.

// 'Here is some text, FYI. I hope you like it! Peace'
'here is some text, FYI. I hope you like it! peace'.toSentenceCase();

See also:

Implementation

String toSentenceCase({
  bool convertAcryonyms = false,
  String? locale,
}) =>
    ToSentenceCaseTransformation(convertAcronyms: convertAcryonyms)
        .transform(this, locale ?? Intl.getCurrentLocale());