RepositoryProviderExtension extension

Extends the BuildContext class with the ability to perform a lookup based on a repository type.

on

Methods

repository<T>() → T
Performs a lookup using the BuildContext to obtain the nearest ancestor repository of type T. [...]
@Deprecated('Use context.read or context.watch instead. Will be removed in v7.0.0')