BoxNode constructor
BoxNode({ - double? width,
- double? height,
- EdgeInsets? padding,
- Anchor? alignment,
- LayoutFlex? flex,
- Vector2? position,
- Vector2? scale,
- double? angle,
- Anchor? anchor,
- bool? enabled,
- int? priority,
- 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;