ToggleButton constructor
const
ToggleButton({
- Key? key,
- String? text,
- double? textSize = 16,
- FontWeight? textStyle,
- double? width,
- double? height,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- double borderRadius = 0,
- bool selected = false,
- bool enabled = true,
- dynamic onClick()?,
- IconData? icon,
- bool expended = false,
- double iconSize = 18,
- EdgeInsetsGeometry? iconPadding,
- dynamic iconAlignment = IconAlignment.end,
- String? textState(
- ToggleButtonState state
- IconData? iconState(
- ToggleButtonState state
- Color? colorState(
- ToggleButtonState state
- Color? backgroundState(
- 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,
});