updateLastReminderDate method

Future<void> updateLastReminderDate()

Updates the last reminder date to now.

Implementation

Future<void> updateLastReminderDate() async {
  try {
    await ensureMigrated();
    final prefs = await SharedPreferences.getInstance();
    await prefs.setInt(_keyLastReminderDate, DateTime.now().millisecondsSinceEpoch);
  } catch (e) {
    loge(e, 'Error updating last reminder date');
  }
}