copyWith method

MessageInteractionInfo copyWith({
  1. int? viewCount,
  2. int? forwardCount,
  3. MessageReplyInfo? replyInfo,
  4. List<MessageReaction>? reactions,
})

Implementation

MessageInteractionInfo copyWith({
  int? viewCount,
  int? forwardCount,
  MessageReplyInfo? replyInfo,
  List<MessageReaction>? reactions,
}) =>
    MessageInteractionInfo(
      viewCount: viewCount ?? this.viewCount,
      forwardCount: forwardCount ?? this.forwardCount,
      replyInfo: replyInfo ?? this.replyInfo,
      reactions: reactions ?? this.reactions,
    );