copyWith method

MessageReaction copyWith({
  1. ReactionType? type,
  2. int? totalCount,
  3. bool? isChosen,
  4. List<MessageSender>? recentSenderIds,
})

Implementation

MessageReaction copyWith({
  ReactionType? type,
  int? totalCount,
  bool? isChosen,
  List<MessageSender>? recentSenderIds,
}) =>
    MessageReaction(
      type: type ?? this.type,
      totalCount: totalCount ?? this.totalCount,
      isChosen: isChosen ?? this.isChosen,
      recentSenderIds: recentSenderIds ?? this.recentSenderIds,
    );