copyWith method

SendMessageViewMetrics copyWith({
  1. int? chatId,
  2. int? messageId,
  3. int? timeInViewMs,
  4. int? activeTimeInViewMs,
  5. int? heightToViewportRatioPerMille,
  6. int? seenRangeRatioPerMille,
})

Implementation

SendMessageViewMetrics copyWith({
  int? chatId,
  int? messageId,
  int? timeInViewMs,
  int? activeTimeInViewMs,
  int? heightToViewportRatioPerMille,
  int? seenRangeRatioPerMille,
}) => SendMessageViewMetrics(
  chatId: chatId ?? this.chatId,
  messageId: messageId ?? this.messageId,
  timeInViewMs: timeInViewMs ?? this.timeInViewMs,
  activeTimeInViewMs: activeTimeInViewMs ?? this.activeTimeInViewMs,
  heightToViewportRatioPerMille:
      heightToViewportRatioPerMille ?? this.heightToViewportRatioPerMille,
  seenRangeRatioPerMille:
      seenRangeRatioPerMille ?? this.seenRangeRatioPerMille,
);