ich overrides in a
hierarchical manner,
and can instead replace each part of a <code>Uri</code> individually.</p>
<p>Example:</p>
<pre class="language-dart"><code>Uri uri1 = Uri.parse("a://b@c:4/d/e?f#g");
Uri uri2 = uri1.replace(scheme: "A", path: "D/E/E", fragment: "G");
print(uri2);  // prints "a://b@c:4/D/E/E?f#G"
</code></pre>
<p>This method acts similarly to using the <code>new Uri</code> constructor with
some of the arguments taken from this <code>Uri</code>. Example:</p>
<pre class="language-dart"><