copyWith method

  1. @override
InternalLinkTypeUserPhoneNumber copyWith({
  1. String? phoneNumber,
  2. String? draftText,
  3. bool? openProfile,
  4. String? unpaidMessagesToken,
  5. dynamic extra,
  6. int? clientId,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
InternalLinkTypeUserPhoneNumber copyWith({
  String? phoneNumber,
  String? draftText,
  bool? openProfile,
  String? unpaidMessagesToken,
  dynamic extra,
  int? clientId,
}) => InternalLinkTypeUserPhoneNumber(
  phoneNumber: phoneNumber ?? this.phoneNumber,
  draftText: draftText ?? this.draftText,
  openProfile: openProfile ?? this.openProfile,
  unpaidMessagesToken: unpaidMessagesToken ?? this.unpaidMessagesToken,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);