exists method

bool exists(
  1. BaseProvider<BaseNotifier, dynamic> provider
)

Whether the provider is initialized. Usually, providers are initialized when you first access them. They are also initialized when you override them. They are getting disposed when you call Ref.dispose.

Implementation

bool exists(BaseProvider provider) {
  return _state.containsKey(provider);
}