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