getInstanceInfo<S> method

InstanceInfo getInstanceInfo<S>({
  1. String? tag,
})

Implementation

InstanceInfo getInstanceInfo<S>({String? tag}) {
  final build = _getDependency<S>(tag: tag);

  return InstanceInfo(
    isPermanent: build?.permanent,
    isSingleton: build?.isSingleton,
    isRegistered: isRegistered<S>(tag: tag),
    isPrepared: !(build?.isInit ?? true),
    isInit: build?.isInit,
  );
}