build method
Initialize a Notifier.
It is safe to use Ref.watch or Ref.listen inside this method.
If a dependency of this Notifier (when using Ref.watch) changes,
then build will be re-executed. On the other hand, the Notifier
will not be recreated. Its instance will be preserved between
executions of build.
If this method throws, reading this provider will rethrow the error.
Implementation
@override
SwapDeepScanProgress build() {
// Reset on an identity change — a new wallet never inherits the prior
// life's "a scan is surfacing" banner. (A same-identity rescan reopen also
// resets it; benign — the rescan's own rebuilding cue takes over, and the
// re-registered widen keeps surfacing underneath.)
ref.watch(walletSessionProvider);
return const SwapDeepScanProgress(ran: false, dismissed: false);
}