shouldOpenBackup method

Future<bool> shouldOpenBackup()

Should show backup key screen

Implementation

Future<bool> shouldOpenBackup() async {
  final isRemind = await isRemindBackup();
  final openedTime = await getBackupOpenedTime();
  if (!isRemind) {
    return false;
  }
  if (openedTime == null) {
    return true;
  }
  if (openedTime.day != DateTime.now().day) {
    return true;
  }
  return false;
}