code>Uri uri3 = new Uri(
    scheme: "A",
    userInfo: uri1.userInfo,
    host: uri1.host,
    port: uri1.port,
    path: "D/E/E",
    query: uri1.query,
    fragment: "G");
print(uri3);  // prints "a://b@c:4/D/E/E?f#G"
print(uri2 == uri3);  // prints true.
</code></pre>
<p>Using this method can be seen as a shorthand for the <code>Uri</code> constructor
call above, but may also be slightly faster because the parts taken
from this <code>Uri</code> need not be checked for validity again.</p>
    </section>
