We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4828f32 commit d7ecc29Copy full SHA for d7ecc29
kitchenowl/lib/cubits/household_add_update/household_update_cubit.dart
@@ -32,10 +32,17 @@ class HouseholdUpdateCubit
32
ApiService.getInstance().onShoppinglistDelete(onShoppinglistDelete);
33
}
34
35
+ @override
36
+ Future<void> close() {
37
+ ApiService.getInstance().offShoppinglistAdd(onShoppinglistAdd);
38
+ ApiService.getInstance().offShoppinglistDelete(onShoppinglistDelete);
39
+ return super.close();
40
+ }
41
+
42
void onShoppinglistAdd(dynamic data) {
43
refresh();
44
-
45
46
void onShoppinglistDelete(dynamic data) {
47
48
0 commit comments