copyWith method

MessageLinkInfo copyWith({
  1. bool? isPublic,
  2. int? chatId,
  3. MessageTopic? topicId,
  4. Message? message,
  5. int? mediaTimestamp,
  6. int? checklistTaskId,
  7. String? pollOptionId,
  8. bool? forAlbum,
})

Implementation

MessageLinkInfo copyWith({
  bool? isPublic,
  int? chatId,
  MessageTopic? topicId,
  Message? message,
  int? mediaTimestamp,
  int? checklistTaskId,
  String? pollOptionId,
  bool? forAlbum,
}) =>
    MessageLinkInfo(
      isPublic: isPublic ?? this.isPublic,
      chatId: chatId ?? this.chatId,
      topicId: topicId ?? this.topicId,
      message: message ?? this.message,
      mediaTimestamp: mediaTimestamp ?? this.mediaTimestamp,
      checklistTaskId: checklistTaskId ?? this.checklistTaskId,
      pollOptionId: pollOptionId ?? this.pollOptionId,
      forAlbum: forAlbum ?? this.forAlbum,
    );