setMasterSwitchState method

void setMasterSwitchState(
  1. bool _state
)

if state changes then we will send update in next round of location sharing

Implementation

void setMasterSwitchState(bool _state) {
  masterSwitchState = _state;
}