select<Result> method
use this method to rebuild your Consumer when a value has changed or you can use a boolean condition. Check the documentation for more info.
Implementation
Target<Notifier, Result> select<Result>(
_BuildBySelect<Notifier, Result> callback) {
// get the Notifier attached to this SimpleProvider
final target = Target<Notifier, Result>(read);
target.filter = Filter.select;
target.callback = callback;
return target;
}