copyWith method
SendPhoneNumberConfirmationCode
copyWith({
- String? hash,
- String? phoneNumber,
- PhoneNumberAuthenticationSettings? settings()?,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
SendPhoneNumberConfirmationCode copyWith({
String? hash,
String? phoneNumber,
PhoneNumberAuthenticationSettings? Function()? settings,
}) =>
SendPhoneNumberConfirmationCode(
hash: hash ?? this.hash,
phoneNumber: phoneNumber ?? this.phoneNumber,
settings: settings != null ? settings() : this.settings,
);