copyWith method

  1. @override
TargetChatInternalLink copyWith({
  1. InternalLinkType? link,
})
override

Copy model with modified properties.

Properties:

  • link: An internal link pointing to the chat

Implementation

@override
TargetChatInternalLink copyWith({
  InternalLinkType? link,
}) =>
    TargetChatInternalLink(
      link: link ?? this.link,
    );