toggleConnectionMode method

void toggleConnectionMode()

Implementation

void toggleConnectionMode() {
  state.connectionEnabled = !state.connectionEnabled;
  _updateState();
}