FSwitch constructor
FSwitch({
- Key? key,
- required ValueChanged<
bool> onChanged, - bool open = false,
- double width = 59.23,
- double? height,
- double? offset,
- double? childOffset,
- Widget? closeChild,
- Widget? openChild,
- Color? color,
- Color? openColor,
- Color? sliderColor,
- Widget? sliderChild,
- bool enable = true,
- Color? shadowColor,
- Offset? shadowOffset,
- double shadowBlur = 0.0,
Implementation
FSwitch({
Key? key,
required this.onChanged,
this.open = false,
this.width = 59.23,
this.height,
this.offset,
this.childOffset,
this.closeChild,
this.openChild,
this.color,
this.openColor,
this.sliderColor,
this.sliderChild,
this.enable = true,
this.shadowColor,
this.shadowOffset,
this.shadowBlur = 0.0,
}) : super(key: key);