isInstantiated<S> static method

bool isInstantiated<S>({
  1. dynamic key,
  2. String? tag,
})

Whether type S has already been instantiated.

Implementation

static bool isInstantiated<S>({dynamic key, String? tag}) {
  if (key is LevitState) {
    return key.isInstantiatedIn(Ls.currentScope, tag: tag);
  }
  return Ls.isInstantiated<S>(tag: tag);
}