</code> will throw as a
path segment cannot contain colon on Windows.</p>
<p>Examples using non-Windows semantics (resulting of calling
toFilePath in comment):</p>
<pre class="language-dart"><code>Uri.parse("xxx/yyy");  // xxx/yyy
Uri.parse("xxx/yyy/");  // xxx/yyy/
Uri.parse("file:///xxx/yyy");  // /xxx/yyy
Uri.parse("file:///xxx/yyy/");  // /xxx/yyy/
Uri.parse("file:///C:");  // /C:
Uri.parse("file:///C:a");  // /C:a
</code></pre>
<p>Examples using Windows semantics (resulting URI in comment):</p>
<pre cl