copyWith method

  1. @override
ChatStatisticsChannel copyWith({
  1. DateRange? period,
  2. StatisticalValue? memberCount,
  3. StatisticalValue? meanMessageViewCount,
  4. StatisticalValue? meanMessageShareCount,
  5. StatisticalValue? meanMessageReactionCount,
  6. StatisticalValue? meanStoryViewCount,
  7. StatisticalValue? meanStoryShareCount,
  8. StatisticalValue? meanStoryReactionCount,
  9. double? enabledNotificationsPercentage,
  10. StatisticalGraph? memberCountGraph,
  11. StatisticalGraph? joinGraph,
  12. StatisticalGraph? muteGraph,
  13. StatisticalGraph? viewCountByHourGraph,
  14. StatisticalGraph? viewCountBySourceGraph,
  15. StatisticalGraph? joinBySourceGraph,
  16. StatisticalGraph? languageGraph,
  17. StatisticalGraph? messageInteractionGraph,
  18. StatisticalGraph? messageReactionGraph,
  19. StatisticalGraph? storyInteractionGraph,
  20. StatisticalGraph? storyReactionGraph,
  21. StatisticalGraph? instantViewInteractionGraph,
  22. List<ChatStatisticsInteractionInfo>? recentInteractions,
  23. dynamic extra,
  24. int? clientId,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
ChatStatisticsChannel copyWith({
  DateRange? period,
  StatisticalValue? memberCount,
  StatisticalValue? meanMessageViewCount,
  StatisticalValue? meanMessageShareCount,
  StatisticalValue? meanMessageReactionCount,
  StatisticalValue? meanStoryViewCount,
  StatisticalValue? meanStoryShareCount,
  StatisticalValue? meanStoryReactionCount,
  double? enabledNotificationsPercentage,
  StatisticalGraph? memberCountGraph,
  StatisticalGraph? joinGraph,
  StatisticalGraph? muteGraph,
  StatisticalGraph? viewCountByHourGraph,
  StatisticalGraph? viewCountBySourceGraph,
  StatisticalGraph? joinBySourceGraph,
  StatisticalGraph? languageGraph,
  StatisticalGraph? messageInteractionGraph,
  StatisticalGraph? messageReactionGraph,
  StatisticalGraph? storyInteractionGraph,
  StatisticalGraph? storyReactionGraph,
  StatisticalGraph? instantViewInteractionGraph,
  List<ChatStatisticsInteractionInfo>? recentInteractions,
  dynamic extra,
  int? clientId,
}) =>
    ChatStatisticsChannel(
      period: period ?? this.period,
      memberCount: memberCount ?? this.memberCount,
      meanMessageViewCount: meanMessageViewCount ?? this.meanMessageViewCount,
      meanMessageShareCount:
          meanMessageShareCount ?? this.meanMessageShareCount,
      meanMessageReactionCount:
          meanMessageReactionCount ?? this.meanMessageReactionCount,
      meanStoryViewCount: meanStoryViewCount ?? this.meanStoryViewCount,
      meanStoryShareCount: meanStoryShareCount ?? this.meanStoryShareCount,
      meanStoryReactionCount:
          meanStoryReactionCount ?? this.meanStoryReactionCount,
      enabledNotificationsPercentage: enabledNotificationsPercentage ??
          this.enabledNotificationsPercentage,
      memberCountGraph: memberCountGraph ?? this.memberCountGraph,
      joinGraph: joinGraph ?? this.joinGraph,
      muteGraph: muteGraph ?? this.muteGraph,
      viewCountByHourGraph: viewCountByHourGraph ?? this.viewCountByHourGraph,
      viewCountBySourceGraph:
          viewCountBySourceGraph ?? this.viewCountBySourceGraph,
      joinBySourceGraph: joinBySourceGraph ?? this.joinBySourceGraph,
      languageGraph: languageGraph ?? this.languageGraph,
      messageInteractionGraph:
          messageInteractionGraph ?? this.messageInteractionGraph,
      messageReactionGraph: messageReactionGraph ?? this.messageReactionGraph,
      storyInteractionGraph:
          storyInteractionGraph ?? this.storyInteractionGraph,
      storyReactionGraph: storyReactionGraph ?? this.storyReactionGraph,
      instantViewInteractionGraph:
          instantViewInteractionGraph ?? this.instantViewInteractionGraph,
      recentInteractions: recentInteractions ?? this.recentInteractions,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );