copyWith method
ChangePhoneNumber
copyWith({
- 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
ChangePhoneNumber copyWith({
String? phoneNumber,
PhoneNumberAuthenticationSettings? Function()? settings,
}) =>
ChangePhoneNumber(
phoneNumber: phoneNumber ?? this.phoneNumber,
settings: settings != null ? settings() : this.settings,
);