copyWith method

  1. @override
AuthorizationStateWaitEmailCode copyWith({
  1. bool? allowAppleId,
  2. bool? allowGoogleId,
  3. EmailAddressAuthenticationCodeInfo? codeInfo,
  4. EmailAddressResetState? emailAddressResetState()?,
  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
AuthorizationStateWaitEmailCode copyWith({
  bool? allowAppleId,
  bool? allowGoogleId,
  EmailAddressAuthenticationCodeInfo? codeInfo,
  EmailAddressResetState? Function()? emailAddressResetState,
  dynamic extra,
  int? clientId,
}) =>
    AuthorizationStateWaitEmailCode(
      allowAppleId: allowAppleId ?? this.allowAppleId,
      allowGoogleId: allowGoogleId ?? this.allowGoogleId,
      codeInfo: codeInfo ?? this.codeInfo,
      emailAddressResetState: emailAddressResetState != null
          ? emailAddressResetState()
          : this.emailAddressResetState,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );