copyWith method

MessageStatistics copyWith({
  1. StatisticalGraph? messageInteractionGraph,
  2. StatisticalGraph? messageReactionGraph,
  3. dynamic extra,
  4. int? clientId,
})

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

Implementation

MessageStatistics copyWith({
  StatisticalGraph? messageInteractionGraph,
  StatisticalGraph? messageReactionGraph,
  dynamic extra,
  int? clientId,
}) => MessageStatistics(
  messageInteractionGraph:
      messageInteractionGraph ?? this.messageInteractionGraph,
  messageReactionGraph: messageReactionGraph ?? this.messageReactionGraph,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);