select<R> method

Target<Notifier, R> select<R>(
  1. _BuildBySelect<S, R> cb
)

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, R> select<R>(_BuildBySelect<S, R> cb) {
  final target = Target<Notifier, R>(read);
  target.filter = Filter.select;
  target.callback = cb;
  return target;
}