RefWatchExtensions extension

Provides an extended method for Ref to monitor ChangeNotifier.

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

on

Methods

watch<T extends Listenable?>(T callback(Ref ref), {List<Object> keys = const [], String? name, bool disposal = true, bool autoDisposeWhenUnreferenced = false}) → T
You can monitor it by passing a callback that returns a ChangeNotifier.