copyWith method
BusinessChatLink
copyWith({
- String? link,
- FormattedText? text,
- String? title,
- int? viewCount,
- dynamic extra,
- int? clientId,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
BusinessChatLink copyWith({
String? link,
FormattedText? text,
String? title,
int? viewCount,
dynamic extra,
int? clientId,
}) => BusinessChatLink(
link: link ?? this.link,
text: text ?? this.text,
title: title ?? this.title,
viewCount: viewCount ?? this.viewCount,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);