AssetId constructor

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

An AssetId with the specified path under package.

The path must be relative and under package, or an ArgumentError is thrown.

The path is normalized: \ is replaced with /, then . and .. are removed.

Implementation

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