select<Result> method

Target<Notifier, Result> select<Result>(
  1. _BuildBySelect<S, Result> callback
)

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.

Implementation

Target<Notifier, Result> select<Result>(_BuildBySelect<S, Result> callback) {
  final target = Target<Notifier, Result>(read);
  target.filter = Filter.select;
  target.callback = callback;
  return target;
}