ToggleButtonComponent constructor

ToggleButtonComponent({
  1. void onPressed()?,
  2. ValueChanged<bool>? onSelectedChanged,
  3. void onChangeState(
    1. ButtonState state
    )?,
  4. PositionComponent? defaultSkin,
  5. PositionComponent? downSkin,
  6. PositionComponent? hoverSkin,
  7. PositionComponent? disabledSkin,
  8. PositionComponent? defaultSelectedSkin,
  9. PositionComponent? downAndSelectedSkin,
  10. PositionComponent? hoverAndSelectedSkin,
  11. PositionComponent? disabledAndSelectedSkin,
  12. PositionComponent? defaultLabel,
  13. PositionComponent? disabledLabel,
  14. PositionComponent? defaultSelectedLabel,
  15. PositionComponent? disabledAndSelectedLabel,
  16. Vector2? size,
  17. Vector2? position,
  18. Vector2? scale,
  19. double? angle,
  20. Anchor? anchor,
  21. Iterable<Component>? children,
  22. 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;
}