copyWith method

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

Implementation

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