fix: Refactor labels structure

This commit is contained in:
Anton Stubenbord
2023-04-05 19:44:58 +02:00
parent a2388b014b
commit 79ccdd0946
35 changed files with 357 additions and 234 deletions

View File

@@ -23,8 +23,8 @@ class DocumentChangedNotifier {
_deleted.add(deleted);
}
void subscribe(
dynamic subscriber, {
void addListener(
Object subscriber, {
DocumentChangedCallback? onUpdated,
DocumentChangedCallback? onDeleted,
}) {
@@ -41,7 +41,7 @@ class DocumentChangedNotifier {
);
}
void unsubscribe(dynamic subscriber) {
void removeListener(Object subscriber) {
_subscribers[subscriber]?.forEach((element) {
element.cancel();
});