core/FormatException-class.html">FormatException</a> is thrown if <code>uri</code> is not a valid data URI.</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">static UriData parse(String uri) {
  if (uri.length &gt;= 5) {
    int dataDelta = _startsWithData(uri, 0);
    if (dataDelta == 0) {
      &#47;&#47; Exact match on &quot;data:&quot;.
      return _parse(uri, 5, null);
  