QueryScopedValueRefPageOrWidgetScopedValueRefWatchExtensions extension

Provides an extended method for QueryScopedValueRef to monitor ChangeNotifier.

ChangeNotifierの監視を行うためのQueryScopedValueRef用の拡張メソッドを提供します。

on

Methods

watch<T extends Listenable?>(T callback(QueryScopedValueRef<PageOrWidgetScopedValueRef> ref), {List<Object> keys = const [], Object? name, bool disposal = true}) → T

Available on QueryScopedValueRef<PageOrWidgetScopedValueRef>, provided by the QueryScopedValueRefPageOrWidgetScopedValueRefWatchExtensions extension

You can monitor it by passing a callback that returns a ChangeNotifier.