setDeepScanRestoreNoteState method

  1. @override
Future<void> setDeepScanRestoreNoteState(
  1. DeepScanRestoreNoteState state
)
override

Persist the note lifecycle (written definitively at each activation — see OnboardingController). BEST-EFFORT: a failed write is non-fatal (the worst case is the one-time nudge not showing, the fail-safe direction), so unlike setBackupConfirmed this NEVER throws.

Implementation

@override
Future<void> setDeepScanRestoreNoteState(
  DeepScanRestoreNoteState state,
) async {
  noteSetCount++;
  if (holdNoteSet != null) await holdNoteSet!.future;
  deepScanNote = state;
}