initializeCollector static method

void initializeCollector({
  1. bool implicitCollecting = false,
})

This needs to be called before using the collector.

  • {implicitCollecting} is a boolean value that indicates whether the collector should automatically load the assets from the server if they are not collected.

Implementation

static void initializeCollector({bool implicitCollecting = false}) {
  try {
    GetIt.I.registerSingleton<BotnoiCollector>(BotnoiCollector(implicitCollecting: implicitCollecting));
  } catch (_) {}
}