Commit 4ee76454 authored by justin's avatar justin Committed by GitHub

Merge pull request #673 from JianweiWangs/opt_observer_holders

rm unnecessary params
parents ba8ca3e3 42494539
...@@ -38,7 +38,7 @@ class ObserversHolder { ...@@ -38,7 +38,7 @@ class ObserversHolder {
void removeObserver<T>(T observer) => void removeObserver<T>(T observer) =>
_observers[T.toString()]?.remove(observer); _observers[T.toString()]?.remove(observer);
void cleanObservers<T>(T observer) => _observers[T.toString()]?.clear(); void cleanObservers<T>() => _observers[T.toString()]?.clear();
Set<T> observersOf<T>() => _observers[T.toString()] as Set<T> ?? <T>{}; Set<T> observersOf<T>() => _observers[T.toString()] as Set<T> ?? <T>{};
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment