title: Flutter/Dart - Format double to String with thousand separators AND digits after decimal point
body: <p>I am trying to achieve a formatted String from a double variable, which will include thousand separators (&quot;,&quot;) AND will include always 2 digits after the decimal point (even if it's zero).</p>
  <p>I've succeeded to achieve both of them separately, but couldn't achieve them combined together.</p>
  <p>Example for what I'm looking to achieve:</p>
  <pre><code>100 =&gt; &quot;100.00&quot;
  100.5 =&gt; &quot;100.50&quot;
  1000 = &quot;1,000.00&quot;
  1000.5 = &gt; &quot;1,000.50&quot;
  1000000 =&gt; &quot;1,000,000.00&quot;
  1000000.53 =&gt; 1,000,000.53
  etc...
  </code></pre>
  <p>I've tried to achieve this using:</p>
  <pre><code>NumberFormat.decimalPattern('en').format(
      double.parse(
          myDoubleVar.toStringAsFixed(2),
      ),
  );
  </code></pre>
  <p>But it doesn't give my the decimal points if they are zero.</p>
  <p>Does anyone know how can I achieve this?</p>
  <p>Thank you</p>