OpacityNode constructor

OpacityNode({
  1. Shape? shape,
  2. double? opacity,
  3. Vector2? position,
  4. Vector2? scale,
  5. double? angle,
  6. Anchor? anchor,
  7. bool? enabled,
  8. int? priority,
  9. Iterable<Node> children = const [],
})

Implementation

OpacityNode({
  super.shape,
  double? opacity,
  super.position,
  super.scale,
  super.angle,
  super.anchor,
  super.enabled,
  super.priority,
  super.children,
}) : super(inherit: .parent) {
  if (opacity != null) {
    this.opacity = opacity;
  }
}