safe_change_notifier library

Safe drop-in replacements for Flutter's ChangeNotifier and ValueNotifier that make notifyListeners() a no-op, rather than an error, after disposal.

safe_change_notifier

Classes

SafeChangeNotifier
A safe drop-in replacement for Flutter's ChangeNotifier that makes notifyListeners() a no-op, rather than an error, after its disposal.
SafeStateNotifier<T>
A safe drop-in replacement for Riverpod's StateNotifier that makes state changes no-op, rather than an error, after its disposal.
SafeValueNotifier<T>
A safe drop-in replacement for Flutter's ValueNotifier that makes notifyListeners() a no-op, rather than an error, after its disposal.