exists property
ProviderListenable<bool>
get
exists
Whether this provider is initialized in the current container.
Reading this listenable does not initialize the provider.
This value represents the 'current value at the time of read'. It is possible to have a short race-condition if you check exists before listening the associated provider:
print(ref.watch(provider.exist)); // false initially
ref.watch(provider); // `provider` was mounted right after the exist check
Implementation
ProviderListenable<bool> get exists => _exists;