uriWithExtension abstract method
Creates a new URI with the same path as this asset but with a different extension.
The ext
parameter should include the leading dot (e.g., '.json').
Returns a new Uri with the specified extension.
Implementation
Uri uriWithExtension(String ext);