 m) =&gt; "${m[2]}${m[1]}${m[1].isEmpty ? 'way' : 'ay'}");

pigLatin('I have a secret now!'); // 'Iway avehay away ecretsay ownay!'
</code></pre>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">String replaceAllMapped(Pattern from, String replace(Match match));</code></pre>
    </section>

  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-