markCompleted static method

Future<void> markCompleted(
  1. String step
)

Marks step as resolved for this device.

Flips the in-memory flag immediately (so a gated screen hides at once) and persists it to Vault so it survives restarts and re-logins.

Implementation

static Future<void> markCompleted(String step) async {
  _completed[step] = true;
  await Vault.put(vaultKeyFor(step), '1');
}