StateProviderExt<Notifier extends StateNotifier<S> , S> extension
extension for StateProvider
- on
-
- StateProvider<
Notifier, S>
- StateProvider<
Methods
-
select<
R> (_BuildBySelect< S, R> cb) → Target<Notifier, R> - 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> cb) → Target<Notifier, bool> - use this method to rebuild your Consumer using the previous state and the current state to return a boolean