dependencies property

  1. @override
List<ProviderOrFamily>? dependencies

The list of providers that this provider potentially depends on.

Specifying this list will tell Riverpod to automatically scope this provider if one of its dependency is overridden. The downside is that it prevents & co to be used with a provider that isn't listed in dependencies.


late final List<ProviderOrFamily>? dependencies = [notifier];