reloadAll method

void reloadAll({
  1. bool force = false,
})

Implementation

void reloadAll({bool force = false}) {
  _singl.forEach((key, value) {
    if (value.permanent && !force) {
      debugPrint('Instance "$key" is permanent. Skipping reload');
    } else {
      value.dependency = null;
      value.isInit = false;
      debugPrint('Instance "$key" was reloaded.');
    }
  });
}