getInstanceInfo<S> method

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

Get instance info

Implementation

InstanceInfo getInstanceInfo<S>({String? tag}) {
  final _InstanceBuilderFactory<T>? 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,
  );
}