From 2a666d4c1d895258d3c7481f45857f01c581ccf0 Mon Sep 17 00:00:00 2001 From: Nikolas Rimikis Date: Mon, 11 Sep 2023 14:08:24 +0200 Subject: [PATCH] refactor(neon): make `AppImplementation` extends `Disposable` Signed-off-by: Nikolas Rimikis --- packages/neon/neon/lib/src/models/app_implementation.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/neon/neon/lib/src/models/app_implementation.dart b/packages/neon/neon/lib/src/models/app_implementation.dart index 811884aa..f60d3fe9 100644 --- a/packages/neon/neon/lib/src/models/app_implementation.dart +++ b/packages/neon/neon/lib/src/models/app_implementation.dart @@ -7,6 +7,7 @@ import 'package:neon/src/bloc/bloc.dart'; import 'package:neon/src/blocs/accounts.dart'; import 'package:neon/src/models/account.dart'; import 'package:neon/src/models/account_cache.dart'; +import 'package:neon/src/models/disposable.dart'; import 'package:neon/src/settings/models/options_collection.dart'; import 'package:neon/src/settings/models/storage.dart'; import 'package:neon/src/widgets/drawer_destination.dart'; @@ -15,7 +16,7 @@ import 'package:rxdart/rxdart.dart'; import 'package:vector_graphics/vector_graphics.dart'; @immutable -abstract class AppImplementation { +abstract class AppImplementation implements Disposable { AppImplementation(); String get id; @@ -111,6 +112,7 @@ abstract class AppImplementation }, ); + @override @mustCallSuper void dispose() { options.dispose();