copyWith method
InternalLinkTypeUserPhoneNumber
copyWith({
- String? phoneNumber,
- String? draftText,
- bool? openProfile,
- String? unpaidMessagesToken,
- dynamic extra,
- 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,
);