changeExtension method

AssetId changeExtension (String newExtension)

Returns a new AssetId with the same package and path as this one but with file extension newExtension.

Implementation

AssetId changeExtension(String newExtension) =>
    AssetId(package, p.withoutExtension(path) + newExtension);