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.
Classes
- SafeChangeNotifier
-
A safe drop-in replacement for Flutter's
ChangeNotifier
that makesnotifyListeners()
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 makesnotifyListeners()
a no-op, rather than an error, after its disposal.