AssetRef class

A reference to an external asset by its source-path key.

The path is the same stable key the build hook and the hot-reload coordinator use (for example assets/dash.glb or assets/toon.fmat), resolved at load time. Wrapping it gives the format a single seam to later swap filesystem paths for content-addressed or uid-backed resolution.

Constructors

AssetRef(String key)
References the asset at the given source-path key.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
key String
The source-path key, relative to the owning package's root.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override