A loader of a site that ships files beside its documents: the fonts it
declares (site.json's fonts) and its local images, which documents
name by their path relative to the site (fonts/Inter.ttf,
images/hero.jpg), as a Flutter app names its assets. The runtime reads
them through the loader that loaded the site.
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
assetUrl(
String path) → Uri? -
Where file
pathis served, when it has a URL (an image is then loaded from there, cached by the platform); null when it is read as bytes only (loadAsset). -
loadAsset(
String path) → Future< Uint8List> -
The bytes of file
path; throws PublishLoadException when there is no such file. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited