ButtonComponent constructor
ButtonComponent({
- PositionComponent? button,
- PositionComponent? buttonDown,
- void onPressed()?,
- void onReleased()?,
- void onCancelled()?,
- Vector2? position,
- Vector2? size,
- Vector2? scale,
- double? angle,
- Anchor? anchor,
- Iterable<
Component> ? children, - int? priority,