HudButtonComponent constructor
HudButtonComponent({
- PositionComponent? button,
- PositionComponent? buttonDown,
- EdgeInsets? margin,
- dynamic onPressed()?,
- dynamic onReleased()?,
- dynamic onCancelled()?,
- Vector2? position,
- Vector2? size,
- Vector2? scale,
- double? angle,
- Anchor? anchor,
- Iterable<
Component> ? children, - int? priority,
Implementation
HudButtonComponent({
super.button,
super.buttonDown,
EdgeInsets? margin,
Function()? super.onPressed,
Function()? super.onReleased,
Function()? super.onCancelled,
super.position,
Vector2? size,
super.scale,
super.angle,
super.anchor,
super.children,
super.priority,
}) : super(
size: size ?? button?.size,
) {
this.margin = margin;
}