ButtonComponent constructor

ButtonComponent({
  1. PositionComponent? button,
  2. PositionComponent? buttonDown,
  3. void onPressed()?,
  4. void onReleased()?,
  5. void onCancelled()?,
  6. Vector2? position,
  7. Vector2? size,
  8. Vector2? scale,
  9. double? angle,
  10. Anchor? anchor,
  11. Iterable<Component>? children,
  12. int? priority,
})

Implementation

ButtonComponent({
  this.button,
  this.buttonDown,
  this.onPressed,
  this.onReleased,
  this.onCancelled,
  super.position,
  Vector2? size,
  super.scale,
  super.angle,
  super.anchor,
  super.children,
  super.priority,
}) : super(
        size: size ?? button?.size,
      );