copyWith method

BusinessChatLink copyWith({
  1. String? link,
  2. FormattedText? text,
  3. String? title,
  4. int? viewCount,
  5. dynamic extra,
  6. 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,
);