ModifierSlot class final

One entry of ModelObject.modifiers: a modifier and whether the stack runs it.

enabled lives here, not on Modifier itself. flutter3d_mesh's own Modifier/ModifierStack (mesh-40) is a pure function from a mesh to a mesh; whether a particular step even runs is a fact about the project, the same way mesh-40's own doc comment already says — closed by Ж3 (2026-09-09): one flag, enabled, and no showInViewport in v1.

ux-13 reopened that and added the second flag, 2026-09-16. The reason Ж3 gave for one flag was that nobody had a use for two; the review found the use, and it is the one every package in the field has: a subdivision at four levels is what the model is for and is not what anybody wants in the viewport while they work, and a cage a boolean cuts with has to be drawn and must not reach the GLB. So enabled is the viewport and inExport is the file, and a modifier can be either, both or neither.

Constructors

ModifierSlot({required Modifier modifier, bool enabled = true, bool inExport = true})
const

Properties

enabled → bool
Whether the stack runs it for the picture.
final
hashCode → int
The hash code for this object.
no setterinherited
inExport → bool
Whether the stack runs it for the file — ux-13.
final
modifier → Modifier
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Modifier? modifier, bool? enabled, bool? inExport}) → ModifierSlot
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromJson(Object? json) → ModifierSlot?
A slot from its own toJson, or null when json is missing a field or names a modifier kind this build does not have — the same "skip rather than refuse the whole file" rule modifierFromJson itself already gives a reason for.