startSingletons method

void startSingletons()
inherited

Implementation

void startSingletons() {
  final singletonBinds =
      binds.where((bind) => bind.type == BindType.singleton);

  singletonBinds
      .where((bind) => bind.className != null)
      .map((bind) => bind.className!)
      .forEach(_resolveInstanceByClassName);

  singletonBinds
      .where((bind) => bind.key != null)
      .map((bind) => bind.key!)
      .forEach(_resolveInstanceByKey);
}