$WatchHandler<T> constructor
$WatchHandler<T> ({
- required dynamic funcGetWatchedValueOrRxWrapperOrRx(),
- required void funcOnChange(
- T newValue,
- T oldValue
Implementation
$WatchHandler({
required this.funcGetWatchedValueOrRxWrapperOrRx,
required this.funcOnChange,
}) {
this._sub = this._observer.listen((evt) {
this._onInitOrUpdated();
});
this._onInitOrUpdated(); // kick it off
}