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