setBackupOpenedTime method

Future<bool> setBackupOpenedTime({
  1. required DateTime dateTime,
})

Last time backupKey opened

Implementation

Future<bool> setBackupOpenedTime({required DateTime dateTime}) async {
  final prefs = await SharedPreferences.getInstance();
  return prefs.setInt(_backupOpenedTime, dateTime.millisecondsSinceEpoch);
}