stateChanged method

void stateChanged(
  1. bool newState
)

Implementation

void stateChanged(bool newState) {
  state = newState;
}