AssetId constructor

AssetId(
  1. String package,
  2. String path
)

Creates a new AssetId at path within package.

The path will be normalized: any backslashes will be replaced with forward slashes (regardless of host OS) and "." and ".." will be removed where possible.

Implementation

AssetId(this.package, String path) : path = _normalizePath(path);