copyWith method

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