BackupScreen class

Settings → Security → Back up recovery phrase (#333): the POST-onboarding twin of the onboarding backup step. Onboarding shows the words once, behind a money-safety gate, seconds after the user chose to create the wallet; this screen lets them see the words again at any later time — a different threat model, so it adds a host RE-AUTH gate (WalletRevealAuthorizer) that a custody model with a credential can plug its prompt into. It is VIEW-ONLY: there is no confirm checkbox and nothing is persisted (the onboarding gate already recorded the backup); the user reads the words and leaves.

KEY RESIDUE (spec §10): the words are read via the autoDispose grantedMnemonicRevealProvider — watched ONLY after re-auth passes, only while its grant is current, and dropped the instant this screen unmounts, the app backgrounds (the auto-hide below) or the wallet changes under it. As on the onboarding view they are shown as plain (non-selectable, non-copyable) text and are never copied into this State, persisted, or logged.

SEED-OWNERSHIP CASES (the maintainer's seed-backup Q&A):

  • Case 1 (the SDK generated / restored the seed — walletProvisionerProvider is wired and holds a mnemonic): reveal the words here.
  • Case 2 (a raw-seed / host-managed wallet — session-only mode leaves the provisioner null, or a host provisioner whose revealMnemonic throws WalletErrorKind.noMnemonic): there is NO wallet-local phrase; the honest state tells the user their recovery lives in the app that set the wallet up, never inventing words that don't exist.
Inheritance

Constructors

BackupScreen({Key? key})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() → ConsumerStatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → ConsumerState<BackupScreen>
Creates the mutable state for this widget at a given location in the tree.
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited