copyWith method
MultiFactorAuthState
copyWith({
- bool? loading,
- Object? error = _sentinel,
- Object? settings = _sentinel,
- Object? appset = _sentinel,
- AuthMode? authMode,
- Object? accountProvider = _sentinel,
- Object? scanProvider = _sentinel,
- bool? agreed,
- bool? obscurePassword,
- bool? submitting,
- bool? challengeLoading,
- bool? submitDragging,
- double? submitProgress,
- String? username,
- String? password,
- String? code,
- Object? challengeToken = _sentinel,
Implementation
MultiFactorAuthState copyWith({
bool? loading,
Object? error = _sentinel,
Object? settings = _sentinel,
Object? appset = _sentinel,
AuthMode? authMode,
Object? accountProvider = _sentinel,
Object? scanProvider = _sentinel,
bool? agreed,
bool? obscurePassword,
bool? submitting,
bool? challengeLoading,
bool? submitDragging,
double? submitProgress,
String? username,
String? password,
String? code,
Object? challengeToken = _sentinel,
}) {
return MultiFactorAuthState(
loading: loading ?? this.loading,
error: identical(error, _sentinel) ? this.error : error,
settings: identical(settings, _sentinel)
? this.settings
: settings as Settings?,
appset: identical(appset, _sentinel) ? this.appset : appset as String?,
authMode: authMode ?? this.authMode,
accountProvider: identical(accountProvider, _sentinel)
? this.accountProvider
: accountProvider as AccountProvider,
scanProvider: identical(scanProvider, _sentinel)
? this.scanProvider
: scanProvider as ScanProvider?,
agreed: agreed ?? this.agreed,
obscurePassword: obscurePassword ?? this.obscurePassword,
submitting: submitting ?? this.submitting,
challengeLoading: challengeLoading ?? this.challengeLoading,
submitDragging: submitDragging ?? this.submitDragging,
submitProgress: submitProgress ?? this.submitProgress,
username: username ?? this.username,
password: password ?? this.password,
code: code ?? this.code,
challengeToken: identical(challengeToken, _sentinel)
? this.challengeToken
: challengeToken as String?,
);
}