CNSwitch constructor
const
CNSwitch({
- Key? key,
- required bool value,
- required ValueChanged<
bool> onChanged, - bool enabled = true,
- CNSwitchController? controller,
- double height = 44.0,
- Color? color,
Creates a Cupertino-native switch.
Implementation
const CNSwitch({
super.key,
required this.value,
required this.onChanged,
this.enabled = true,
this.controller,
this.height = 44.0,
this.color,
});