StateProviderExt<Notifier extends StateNotifier<S> , S> extension
extension for StateProvider
- on
-
- StateProvider<
Notifier, S>
- StateProvider<
Methods
-
select<
Result> (_BuildBySelect< S, Result> callback, {bool booleanCallback = false}) → Target<Notifier, Result> - use this method to rebuild your Consumer when a value in the state has changed or you can use a boolean condition. Check the documentation for more info.
-
when(
_BuildWhen< S> callback) → Target<Notifier, bool> - use this method to rebuild your Consumer using the previous state and the current state to return a boolean