MultiFactorAuthState.initial constructor
const
MultiFactorAuthState.initial({
- bool loading = true,
- Object? error,
- Settings? settings,
- String? appset,
- AuthMode authMode = AuthMode.account,
- AccountProvider accountProvider = AccountProvider.password,
- ScanProvider? scanProvider,
- bool agreed = true,
- bool obscurePassword = true,
- bool submitting = false,
- bool challengeLoading = false,
- bool submitDragging = false,
- double submitProgress = 0,
- String username = '',
- String password = '',
- String code = '',
- String? challengeToken,
Implementation
const MultiFactorAuthState.initial({
this.loading = true,
this.error,
this.settings,
this.appset,
this.authMode = AuthMode.account,
this.accountProvider = AccountProvider.password,
this.scanProvider,
this.agreed = true,
this.obscurePassword = true,
this.submitting = false,
this.challengeLoading = false,
this.submitDragging = false,
this.submitProgress = 0,
this.username = '',
this.password = '',
this.code = '',
this.challengeToken,
});