copyWith method

  1. @override
AuthorizationStateWaitPassword copyWith({
  1. String? passwordHint,
  2. bool? hasRecoveryEmailAddress,
  3. bool? hasPassportData,
  4. String? recoveryEmailAddressPattern,
  5. dynamic extra,
  6. int? clientId,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
AuthorizationStateWaitPassword copyWith({
  String? passwordHint,
  bool? hasRecoveryEmailAddress,
  bool? hasPassportData,
  String? recoveryEmailAddressPattern,
  dynamic extra,
  int? clientId,
}) => AuthorizationStateWaitPassword(
  passwordHint: passwordHint ?? this.passwordHint,
  hasRecoveryEmailAddress:
      hasRecoveryEmailAddress ?? this.hasRecoveryEmailAddress,
  hasPassportData: hasPassportData ?? this.hasPassportData,
  recoveryEmailAddressPattern:
      recoveryEmailAddressPattern ?? this.recoveryEmailAddressPattern,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);