watchX<T extends Object, R> method

R watchX<T extends Object, R>(
  1. ValueListenable<R> select(
    1. T
    ), {
  2. String? instanceName,
})

like watch but it only triggers a rebuild when the value of the ValueListenable, that the function select returns changes useful if the ValueListenable is a member of your business object T

Implementation

R watchX<T extends Object, R>(
  ValueListenable<R> Function(T) select, {
  String? instanceName,
}) =>
    _state.value.watchX<T, R>(select, instanceName: instanceName);