addExtension method

AssetId addExtension(
  1. String extension
)

Returns a new AssetId with the same package as this one and with the path extended to include extension.

Implementation

AssetId addExtension(String extension) => AssetId(package, '$path$extension');