HudButtonComponent constructor

HudButtonComponent({
  1. PositionComponent? button,
  2. PositionComponent? buttonDown,
  3. EdgeInsets? margin,
  4. void onPressed()?,
  5. void onReleased()?,
  6. Vector2? position,
  7. Vector2? size,
  8. Vector2? scale,
  9. double? angle,
  10. Anchor? anchor,
  11. int? priority,
})

Implementation

HudButtonComponent({
  this.button,
  this.buttonDown,
  EdgeInsets? margin,
  this.onPressed,
  this.onReleased,
  Vector2? position,
  Vector2? size,
  Vector2? scale,
  double? angle,
  Anchor? anchor,
  int? priority,
}) : super(
        margin: margin,
        position: position,
        size: size ?? button?.size,
        scale: scale,
        angle: angle,
        anchor: anchor,
        priority: priority,
      );