FmatMaterialRegistry class final Materials
Resolves and loads the .fmat materials the buildMaterials build hook
compiled.
Materials are keyed by their .fmat source path relative to the owning
package's root, so two materials that share a name in different directories
do not collide.
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
-
loadMaterial(
String sourcePath, {String? package, String? bundleName, FmatMaterialFactory? factory}) → Future< PreprocessedMaterial> -
Loads the material whose source is
sourcePathas a PreprocessedMaterial. -
loadSky(
String sourcePath, {String? package, String? bundleName}) → Future< PreprocessedSky> -
Loads the sky whose source is
sourcePathas a PreprocessedSky. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
String sourcePath, {String? package, String? bundleName}) → FmatMaterialResolution -
Resolves
sourcePath(the.fmatsource path relative to the owning package's root, with or without the.fmatextension) to exactly one generated bundle/index entry. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
isFmatIndexAssetKey(
String assetKey) → bool -
Returns true when
assetKeyis a generated.fmatdata-asset index. -
load(
{AssetBundle? bundle, Iterable< String> ? assetKeys}) → Future<FmatMaterialRegistry> -
Loads every generated flutter_scene
.fmatbundle index the app ships, whether it arrived as a data asset or through the generated tree.