initialize static method

void initialize(
  1. Widget app
)

Implementation

static void initialize(
  Widget app,
) async {
  WidgetsFlutterBinding.ensureInitialized();

  /// 加载本地日志
  await loadLogsFromDb();

  /// 异常捕获
  AppCatchError.run(app);
}