To create a cupetino switch in flutter we have to use CupertinoSwitch class . Call the constructor of the class and provide the required properties. The switch has two required properties value and onChanged. The value will indicate the state of the switch.5 Kas 2021