clearSignalsAndEffects method
void
clearSignalsAndEffects()
Reset all stored signals and effects
Implementation
void clearSignalsAndEffects() {
_cleanup?.call();
_cleanup = null;
final local = _signals //
.values
.where((e) => e.local == true)
.map((e) => e.target);
for (final s in local) {
s.dispose();
}
for (final cb in _effects) {
cb();
}
_effects.clear();
_signals.clear();
}