copyWith method

ChangePhoneNumber copyWith({
  1. String? phoneNumber,
  2. 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,
    );