getBackupOpenedTime method

Future<DateTime?> getBackupOpenedTime()

Implementation

Future<DateTime?> getBackupOpenedTime() async {
  final prefs = await SharedPreferences.getInstance();
  final millisecondsSinceEpoch = prefs.getInt(_backupOpenedTime);
  if (millisecondsSinceEpoch != null) {
    return DateTime.fromMillisecondsSinceEpoch(millisecondsSinceEpoch);
  } else {
    return null;
  }
}