NodeSpec constructor

NodeSpec({
  1. required LocalId id,
  2. String name = '',
  3. TransformSpec? transform,
  4. List<LocalId>? children,
  5. List<ComponentSpec>? components,
  6. int layers = 1,
  7. LocalId? skin,
  8. PrefabInstanceSpec? instance,
  9. bool excludeFromWindingParity = false,
  10. 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 ?? [];