copyWith method

Reviews copyWith({
  1. double? rating,
  2. int? count,
})

Implementation

Reviews copyWith({
  double? rating,
  int? count
}) {
  return Reviews(
    rating: rating ?? this.rating,
    count: count ?? this.count
  );
}