initialize static method

Future<void> initialize({
  1. required GlobalKey<NavigatorState> navigatorKey,
  2. bool isShowLogInNotification = false,
  3. String? androidNotificationIcon,
})

Implementation

static Future<void> initialize({
  required GlobalKey<NavigatorState> navigatorKey,
  bool isShowLogInNotification = false,
  String? androidNotificationIcon,
}) async {
  await _resolveLogDirectory(create: true);

  AppRunTime.isShowLogInNotification = isShowLogInNotification;
  if (isShowLogInNotification) {
    await NotificationService.initialize(
      navigatorKey: navigatorKey,
      androidNotificationIcon: androidNotificationIcon,
    );
  }
}