BoxNode constructor

BoxNode({
  1. double? width,
  2. double? height,
  3. EdgeInsets? padding,
  4. Anchor? alignment,
  5. LayoutFlex? flex,
  6. Vector2? position,
  7. Vector2? scale,
  8. double? angle,
  9. Anchor? anchor,
  10. bool? enabled,
  11. int? priority,
  12. Iterable<Node> children = const [],
})

Implementation

BoxNode({
  double? width,
  double? height,
  EdgeInsets? padding,
  this.alignment,
  super.flex,
  super.position,
  super.scale,
  super.angle,
  super.anchor,
  super.enabled,
  super.priority,
  super.children,
}) : targetWidth = width,
     targetHeight = height,
     padding = padding ?? .zero;