copyWith method
InternalLinkTypePublicChat
copyWith({
- String? chatUsername,
- 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
InternalLinkTypePublicChat copyWith({
String? chatUsername,
String? draftText,
bool? openProfile,
String? unpaidMessagesToken,
dynamic extra,
int? clientId,
}) => InternalLinkTypePublicChat(
chatUsername: chatUsername ?? this.chatUsername,
draftText: draftText ?? this.draftText,
openProfile: openProfile ?? this.openProfile,
unpaidMessagesToken: unpaidMessagesToken ?? this.unpaidMessagesToken,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);