addCoreInit static method

void addCoreInit(
  1. List<Bloc> blocs,
  2. List<Dependency> dependencies,
  3. String tagText
)

Implementation

static void addCoreInit(List<Bloc> blocs, List<Dependency> dependencies, String tagText) {
  if (!_injectMap.containsKey(tagText)) {
    if (BlocProvider.debugMode) {
      print("BLOCPROVIDER START ($tagText)");
    }
    _injectMap[tagText] = Core(
      blocs: blocs,
      dependencies: dependencies,
      tag: tagText,
      //  views: this.views,
    );
  } else {
    if (BlocProvider.debugMode) {
      print("BLOCPROVIDER START AGAIN ($tagText)");
    }
    _injectMapHelper[tagText] = Core(
      blocs: blocs,
      dependencies: dependencies,
      tag: tagText,
      //  views: this.views,
    );
  }
}