hasStateReaderFor method

  1. @internal
  2. @visibleForTesting
bool hasStateReaderFor(
  1. ProviderListenable<Object?> provider
)

An internal utility for checking if a ProviderContainer has a fast path for reading a provider.

This should not be used and is an implementation detail of ProviderContainer. It could be removed at any time without a major version bump.

Implementation

@internal
@visibleForTesting
bool hasStateReaderFor(ProviderListenable<Object?> provider) {
  return _stateReaders.containsKey(provider);
}