enum AccountStatus { undefined, loggedIn, loggedOut, addingAccount } class AccountState { final AccountStatus status; /// Active account; the account-scoped part of the app is keyed by it. final String? accountId; /// Set when [accountId] came from a login (not a switch), to show the /// post-login splash. final bool freshLogin; const AccountState({ this.status = AccountStatus.undefined, this.accountId, this.freshLogin = false, }); }