copyWith method
AuthenticationCodeInfo
copyWith({
- String? phoneNumber,
- AuthenticationCodeType? type,
- AuthenticationCodeType? nextType()?,
- int? timeout,
- dynamic extra,
- 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,
);