with

fun with(change: Uri.WithChange): Uri(source)

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');

Parameters

change

An object that describes a change to this Uri. To unset components use null or the empty string.