HudMarginComponent constructor
HudMarginComponent({
- EdgeInsets? margin,
- Vector2? position,
- Vector2? size,
- Vector2? scale,
- double? angle,
- Anchor? anchor,
- Iterable<
Component> ? children, - int? priority,
- ComponentKey? key,
Implementation
HudMarginComponent({
this.margin,
super.position,
super.size,
super.scale,
super.angle,
super.anchor,
super.children,
super.priority,
super.key,
}) : assert(
margin != null || position != null,
'Either margin or position must be defined',
);