SpriteButtonComponent constructor
SpriteButtonComponent({})
Implementation
SpriteButtonComponent({
Sprite? button,
Sprite? buttonDown,
this.onPressed,
super.position,
Vector2? size,
super.scale,
super.angle,
super.anchor,
super.children,
super.priority,
}) : _button = button,
_buttonDown = buttonDown,
super(
current: ButtonState.up,
size: size ?? button?.originalSize,
);