activeStateChanged method

void activeStateChanged(
  1. bool newActive
)

Implementation

void activeStateChanged(bool newActive) {
  if (newActive == active) {
    return;
  }
  active = newActive;
  liveData.changeActiveCounter(active ? 1 : -1);
  if (active) {
    liveData.dispatchingValue(this);
  }
}