run static method

void run(
  1. Widget app, {
  2. List<Pluggable>? pluginsList,
  3. bool? autoCollectLogs,
})

【app】主应用

【showKit】是否显示kit

【pluginsList】自定义插件列表

Implementation

static void run(
  /// 主应用
  Widget app, {
  /// 自定义插件列表
  final List<Pluggable>? pluginsList,

  /// 是否自动收集日志
  bool? autoCollectLogs,
}) {
  autoCollectLogs ??= false;
  if (autoCollectLogs) {
    LogWriter.run(() {
      runApp(_ToolKit(pluginsList: pluginsList, child: app));
    });
  } else {
    runApp(_ToolKit(pluginsList: pluginsList, child: app));
  }
}