MultiFactorAuthState.initial constructor

const MultiFactorAuthState.initial({
  1. bool loading = true,
  2. Object? error,
  3. Settings? settings,
  4. String? appset,
  5. AuthMode authMode = AuthMode.account,
  6. AccountProvider accountProvider = AccountProvider.password,
  7. ScanProvider? scanProvider,
  8. bool agreed = true,
  9. bool obscurePassword = true,
  10. bool submitting = false,
  11. bool challengeLoading = false,
  12. bool submitDragging = false,
  13. double submitProgress = 0,
  14. String username = '',
  15. String password = '',
  16. String code = '',
  17. 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,
});