toggleSwitchValue method

void toggleSwitchValue(
  1. bool val
)

Implementation

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