Browse Source

refactor(neon): make `AppImplementation` extends `Disposable`

Signed-off-by: Nikolas Rimikis <leptopoda@users.noreply.github.com>
pull/721/head
Nikolas Rimikis 1 year ago
parent
commit
2a666d4c1d
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 4
      packages/neon/neon/lib/src/models/app_implementation.dart

4
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<T extends Bloc, R extends NextcloudAppOptions> {
abstract class AppImplementation<T extends Bloc, R extends NextcloudAppOptions> implements Disposable {
AppImplementation();
String get id;
@ -111,6 +112,7 @@ abstract class AppImplementation<T extends Bloc, R extends NextcloudAppOptions>
},
);
@override
@mustCallSuper
void dispose() {
options.dispose();

Loading…
Cancel
Save