Skip to content

Commit

Permalink
feat: Added better change notifier class
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlooverenkoen committed Dec 24, 2023
1 parent b393637 commit 0dd3485
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/impaktfull_architecture.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
library impaktfull_architecture;

export 'src/util/connectivity/connectivity.dart';
export 'src/provider/change_notifier_ex.dart';

// 3rd party packages
export 'package:connectivity_plus/connectivity_plus.dart';
Expand Down
13 changes: 13 additions & 0 deletions lib/src/provider/change_notifier_ex.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import 'package:flutter/foundation.dart';

abstract class ChangeNotifierEx extends ChangeNotifier {
bool _diposed = false;

bool get disposed => _diposed;

@override
void dispose() {
super.dispose();
_diposed = true;
}
}

0 comments on commit 0dd3485

Please sign in to comment.