watch<T> method

  1. @protected
  2. @override
T watch<T>(
  1. Valuable<T> valuable, {
  2. ValuableContext? valuableContext,
  3. ValuableWatcherSelector<T>? selector,
})

Watch a valuable, that eventually change

Implementation

@protected
@override
T watch<T>(Valuable<T> valuable,
    {ValuableContext? valuableContext,
    ValuableWatcherSelector<T>? selector}) {
  if (valuable == this) {
    throw ValuableIllegalUseException();
  }
  return super
      .watch(valuable, valuableContext: valuableContext, selector: selector);
}