MaterialChain class abstract final

Walks a variant's parents and lays each file over the one before.

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

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

Static Methods

resolve2D(String path, Material2DFile? read(String path)) → ResolvedMaterial<Material2DFile>
path's 2-D material with its parents resolved.
resolve3D(String path, MaterialFile? read(String path)) → ResolvedMaterial<MaterialFile>
path's material with its parents resolved. read gives a file by path, or null when it is missing or unreadable.

Constants

maxDepth → const int
The most parents followed before it counts as a loop.