isInstantiatedIn method

bool isInstantiatedIn(
  1. LevitScope scope, {
  2. String? tag,
})

Checks whether this store is instantiated in scope.

Returns true when the store value has already been built.

Implementation

bool isInstantiatedIn(LevitScope scope, {String? tag}) {
  final instanceKey =
      tag != null ? 'ls_store_${_getStoreTag(this, tag)}' : _defaultKey;
  return scope.isInstantiated<_LevitStoreInstance<T>>(tag: instanceKey);
}