ProviderWatchExt extension

Extension methods on BuildContext to watch for updates in provided data.

on

Methods

maybeWatch<T>() → T?

Available on BuildContext, provided by the ProviderWatchExt extension

Watches the provided data of type T and rebuilds when it changes.
watch<T>() → T

Available on BuildContext, provided by the ProviderWatchExt extension

Watches the provided data of type T and rebuilds when it changes.