StateProviderExt<Notifier extends StateNotifier<S> , S> extension
extension for StateProvider
- on
-
- StateProvider<
Notifier, S>
- StateProvider<
Methods
-
select<
Result> (_BuildBySelect< S, Result> callback) → Target<Notifier, Result> -
Available on StateProvider<
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.Notifier, S> , provided by the StateProviderExt extension -
when(
_BuildWhen< S> callback) → Target<Notifier, bool> -
Available on StateProvider<
use this method to rebuild your Consumer using the previous state and the current state to return a booleanNotifier, S> , provided by the StateProviderExt extension