A new Flutter application which implements a CupertinoSwitch.
- Use the following code to implement a switch with initially false
CupertinoSwitch(
value: currentState,
onPressed: (bool state) {
setState(() {
currentState = true;
});
}
activeColor: Colors.red,
)

