copyWith method

MessageForwardInfo copyWith({
  1. MessageForwardOrigin? origin,
  2. int? date,
  3. String? publicServiceAnnouncementType,
  4. int? fromChatId,
  5. int? fromMessageId,
})

Implementation

MessageForwardInfo copyWith({
  MessageForwardOrigin? origin,
  int? date,
  String? publicServiceAnnouncementType,
  int? fromChatId,
  int? fromMessageId,
}) =>
    MessageForwardInfo(
      origin: origin ?? this.origin,
      date: date ?? this.date,
      publicServiceAnnouncementType:
          publicServiceAnnouncementType ?? this.publicServiceAnnouncementType,
      fromChatId: fromChatId ?? this.fromChatId,
      fromMessageId: fromMessageId ?? this.fromMessageId,
    );