ToggleSwitch constructor
ToggleSwitch({
- Key? key,
- required List<
String> labels, - Color? activeBgColor,
- Color? activeFgColor,
- Color? inactiveBgColor,
- Color? inactiveFgColor,
- OnToggle? onToggle,
- double cornerRadius = 8.0,
- int initialLabelIndex = 0,
- double minWidth = 72.0,
- double minHeight = 40.0,
- bool changeOnTap = true,
- List<
IconData> ? icons, - List<
Color> ? activeBgColors, - double fontSize = 14.0,
- double iconSize = 17.0,
Implementation
ToggleSwitch({
Key? key,
required this.labels,
this.activeBgColor,
this.activeFgColor,
this.inactiveBgColor,
this.inactiveFgColor,
this.onToggle,
this.cornerRadius = 8.0,
this.initialLabelIndex = 0,
this.minWidth = 72.0,
this.minHeight = 40.0,
this.changeOnTap = true,
this.icons,
this.activeBgColors,
this.fontSize = 14.0,
this.iconSize = 17.0,
}) : super(key: key);