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,
})