MaterialHints class final

The parameters of one lit model a plugin brings, as a material panel shows them for a material that names it.

Keyed by model, the lighting model's stage name (acme_Velvet, or acme.velvet): what a material file's shader names, the model's shaderName.

Constructors

MaterialHints({required String model, List<FieldHint> fields = const <FieldHint>[]})
const

Properties

fields → List<FieldHint>
Its parameters, by uniform name.
final
hashCode → int
The hash code for this object.
no setterinherited
model → String
The lighting model's stage name.
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
toJson() → Map<String, Object?>
As a document writes it.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited
operator [](String key) → FieldHint?
The hint for key, or null.

Static Methods

fromJson(Object? json) → MaterialHints
What json holds, as toJson writes it. Throws a DocumentFormatException for anything else.