isPrepared<S> method

bool isPrepared<S>({
  1. String? tag,
})

Checks if an instance of S has been initialized.

Implementation

bool isPrepared<S>({String? tag}) {
  final key = _getKey(S, tag);
  return _factories.containsKey(key) && _factories[key]!.isInit;
}