getInstanceDetails<S> method

InstanceDetails getInstanceDetails<S>({
  1. String? tag,
})

Implementation

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

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