with
Derive a new Uri from this Uri.
let file = Uri.parse('before:some/file/path');
let other = file.with({ scheme: 'after' });
assert.ok(other.toString() === 'after:some/file/path');
Content copied to clipboard
Parameters
change
An object that describes a change to this Uri. To unset components use null
or the empty string.