HudButtonComponent constructor

HudButtonComponent({
  1. PositionComponent? button,
  2. PositionComponent? buttonDown,
  3. EdgeInsets? margin,
  4. dynamic onPressed()?,
  5. dynamic onReleased()?,
  6. dynamic onCancelled()?,
  7. Vector2? position,
  8. Vector2? size,
  9. Vector2? scale,
  10. double? angle,
  11. Anchor? anchor,
  12. Iterable<Component>? children,
  13. 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;
}