title: How to capitalize the TextField value first letter of the first word after full stop "."?
body: <p>Is such a thing possible?</p>
  <p>example: &quot;My favourite film is the matrix. And i think... &quot;</p>
  <p>similar questions have been asked before but they are forsimple capital the first letter of first word and not more</p>
  <p>this codes just worked for first letter of first word and cant understand &quot;.&quot;</p>
  <pre class="lang-dart prettyprint-override"><code>extension CapExtension on String {
    String get inCaps =&gt;
        this.length &gt; 0 ? '${this[0].toUpperCase()}${this.substring(1)}' : '';
  
    String get capitalizeFirstofEach =&gt; this
        .replaceAll(RegExp(' +'), ' ')
        .split(&quot; &quot;)
        .map((str) =&gt; str.inCaps)
        .join(&quot; &quot;);
  }
  
  </code></pre>
  <pre class="lang-dart prettyprint-override"><code>class CapitalCaseTextFormatter extends TextInputFormatter {
    @override
    TextEditingValue formatEditUpdate(
        TextEditingValue oldValue, TextEditingValue newValue) {
      return TextEditingValue(
        text: newValue.text.inCaps,
        selection: newValue.selection,
      );
    }
  }
  
  </code></pre>
  <pre class="lang-dart prettyprint-override"><code>TextFormField(
     inputFormatters: [
              CapitalCaseTextFormatter()
                    ]
  )
  </code></pre>