copyWith method

ChatMessageReaction copyWith({
  1. String? reaction,
  2. int? userCount,
  3. bool? isAddedBySelf,
  4. List<String>? userList,
})

Implementation

ChatMessageReaction copyWith({
  String? reaction,
  int? userCount,
  bool? isAddedBySelf,
  List<String>? userList,
}) {
  return ChatMessageReaction._private(
    reaction: reaction ?? this.reaction,
    userCount: userCount ?? this.userCount,
    isAddedBySelf: isAddedBySelf ?? this.isAddedBySelf,
    userList: userList ?? this.userList,
  );
}