setLastNotificationCheckDate method

  1. @override
Future<void> setLastNotificationCheckDate(
  1. int lastNotificationCheckDate
)
override

Implementation

@override
Future<void> setLastNotificationCheckDate(int lastNotificationCheckDate) async {
  AppConfig.logger.d("Setting last time notification were checked");

  try {
    final profileBox = await getBox(AppHiveBox.profile.name);
    await profileBox.put(AppHiveConstants.lastNotificationCheckDate, lastNotificationCheckDate);
  } catch (e) {
    AppConfig.logger.e(e.toString());
  }
}