toggleSwitchValue method

dynamic toggleSwitchValue(
  1. bool val
)

Implementation

toggleSwitchValue(bool val){
  switchValue = val;
  update();
}