isPrepared<S> method
Checks whether a lazy factory callback for type S (and optionally with tag) is registered
and ready to be initialized.
tagOptional tag to identify the lazy instance.
Implementation
bool isPrepared<S>({String? tag}) {
final newKey = _getKey(S, tag);
final builder = _getDependency<S>(tag: tag, key: newKey);
return builder != null && !builder.isInit;
}