watchXOnly<T extends Object, Q extends Listenable, R> method

R watchXOnly<T extends Object, Q extends Listenable, R>(
  1. Q select(
    1. T
    ),
  2. R only(
    1. Q listenable
    ), {
  3. String? instanceName,
})

a combination of watchX and watchOnly for simple Listenable members Q of your object T

Implementation

R watchXOnly<T extends Object, Q extends Listenable, R>(
  Q Function(T) select,
  R Function(Q listenable) only, {
  String? instanceName,
}) =>
    _state.value
        .watchXOnly<T, Q, R>(select, only, instanceName: instanceName);