ToggleButton constructor

const ToggleButton({
  1. Key? key,
  2. String? text,
  3. double? textSize = 16,
  4. FontWeight? textStyle,
  5. double? width,
  6. double? height,
  7. EdgeInsetsGeometry? margin,
  8. EdgeInsetsGeometry? padding,
  9. double borderRadius = 0,
  10. bool selected = false,
  11. bool enabled = true,
  12. dynamic onClick(
    1. bool
    )?,
  13. IconData? icon,
  14. bool expended = false,
  15. double iconSize = 18,
  16. EdgeInsetsGeometry? iconPadding,
  17. dynamic iconAlignment = IconAlignment.end,
  18. String? textState(
    1. ToggleButtonState state
    )?,
  19. IconData? iconState(
    1. ToggleButtonState state
    )?,
  20. Color? colorState(
    1. ToggleButtonState state
    )?,
  21. Color? backgroundState(
    1. ToggleButtonState state
    )?,
})

Implementation

const ToggleButton({
  super.key,
  this.text,
  this.textSize = 16,
  this.textStyle,
  this.width,
  this.height,
  this.margin,
  this.padding,
  this.borderRadius = 0,
  this.selected = false,
  this.enabled = true,
  this.onClick,
  this.icon,
  this.expended = false,
  this.iconSize = 18,
  this.iconPadding,
  this.iconAlignment = IconAlignment.end,
  this.textState,
  this.iconState,
  this.colorState,
  this.backgroundState,
});