copyWith method

AuthenticationCodeInfo copyWith({
  1. String? phoneNumber,
  2. AuthenticationCodeType? type,
  3. AuthenticationCodeType? nextType()?,
  4. int? timeout,
  5. dynamic extra,
  6. int? clientId,
})

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

Implementation

AuthenticationCodeInfo copyWith({
  String? phoneNumber,
  AuthenticationCodeType? type,
  AuthenticationCodeType? Function()? nextType,
  int? timeout,
  dynamic extra,
  int? clientId,
}) =>
    AuthenticationCodeInfo(
      phoneNumber: phoneNumber ?? this.phoneNumber,
      type: type ?? this.type,
      nextType: nextType != null ? nextType() : this.nextType,
      timeout: timeout ?? this.timeout,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );