ToggleButtonComponent constructor
ToggleButtonComponent({
- void onPressed()?,
- ValueChanged<
bool> ? onSelectedChanged, - void onChangeState(
- ButtonState state
- PositionComponent? defaultSkin,
- PositionComponent? downSkin,
- PositionComponent? hoverSkin,
- PositionComponent? disabledSkin,
- PositionComponent? defaultSelectedSkin,
- PositionComponent? downAndSelectedSkin,
- PositionComponent? hoverAndSelectedSkin,
- PositionComponent? disabledAndSelectedSkin,
- PositionComponent? defaultLabel,
- PositionComponent? disabledLabel,
- PositionComponent? defaultSelectedLabel,
- PositionComponent? disabledAndSelectedLabel,
- Vector2? size,
- Vector2? position,
- Vector2? scale,
- double? angle,
- Anchor? anchor,
- Iterable<
Component> ? children, - int? priority,
Implementation
ToggleButtonComponent({
super.onPressed,
this.onSelectedChanged,
super.onChangeState,
super.defaultSkin,
super.downSkin,
super.hoverSkin,
super.disabledSkin,
PositionComponent? defaultSelectedSkin,
PositionComponent? downAndSelectedSkin,
PositionComponent? hoverAndSelectedSkin,
PositionComponent? disabledAndSelectedSkin,
super.defaultLabel,
super.disabledLabel,
PositionComponent? defaultSelectedLabel,
PositionComponent? disabledAndSelectedLabel,
super.size,
super.position,
super.scale,
super.angle,
super.anchor,
super.children,
super.priority,
}) {
this.defaultSelectedSkin = defaultSelectedSkin;
this.downAndSelectedSkin = downAndSelectedSkin;
this.hoverAndSelectedSkin = hoverAndSelectedSkin;
this.disabledAndSelectedSkin = disabledAndSelectedSkin;
this.defaultSelectedLabel = defaultSelectedLabel;
this.disabledAndSelectedLabel = disabledAndSelectedLabel;
}