TDSwitch constructor
const
TDSwitch({
- Key? key,
- bool enable = true,
- bool isOn = false,
- TDSwitchSize? size = TDSwitchSize.medium,
- TDSwitchType? type = TDSwitchType.fill,
- Color? trackOnColor,
- Color? trackOffColor,
- Color? thumbContentOnColor,
- Color? thumbContentOffColor,
- ValueChanged<
bool> ? onChanged,
Implementation
const TDSwitch({
Key? key,
this.enable = true,
this.isOn = false,
this.size = TDSwitchSize.medium,
this.type = TDSwitchType.fill,
this.trackOnColor,
this.trackOffColor,
this.thumbContentOnColor,
this.thumbContentOffColor,
this.onChanged,
}) : super(key: key);