readProviderElement<T> method

  1. @override
ProviderElementBase<T> readProviderElement<T>(
  1. ProviderBase<T> provider
)
inherited

Reads the state of a provider, potentially creating it in the process.

It may throw if the provider requested threw when it was built.

Do not use this in production code. This is exposed only for testing and devtools, to be able to test if a provider has listeners or similar.

Implementation

@override
ProviderElementBase<T> readProviderElement<T>(ProviderBase<T> provider) {
  return _container.readProviderElement(provider);
}