trigger method
如果isPaused
状态没有改变,resume
时有可能发生这种情况
手动为self
更新数据
Implementation
void trigger({StreamSubscriptionUnit<T>? self}) {
final lastPaused = isPaused;
_isPaused = activeUnits.isEmpty;
var notified = false;
if (lastPaused != isPaused) {
notifyClient();
notified = true;
}
if (self != null) {
if (!listenFirst) {
_childResume(self);
} else if (!notified) {
notifyClient();
}
}
}