NodeSpec constructor
NodeSpec({
- required LocalId id,
- String name = '',
- TransformSpec? transform,
- List<
LocalId> ? children, - List<
ComponentSpec> ? components, - int layers = 1,
- LocalId? skin,
- PrefabInstanceSpec? instance,
- bool excludeFromWindingParity = false,
- bool visible = true,
Creates a node with the given stable id.
Implementation
NodeSpec({
required this.id,
this.name = '',
TransformSpec? transform,
List<LocalId>? children,
List<ComponentSpec>? components,
this.layers = 1,
this.skin,
this.instance,
this.excludeFromWindingParity = false,
this.visible = true,
}) : transform = transform ?? TrsTransform(),
children = children ?? [],
components = components ?? [];