copyWith method

RatingModel copyWith({
  1. int? id,
  2. String? title,
  3. String? subtitle,
  4. RatingConfigModel? ratingConfig,
})

Implementation

RatingModel copyWith({
  int? id,
  String? title,
  String? subtitle,
  RatingConfigModel? ratingConfig,
}) {
  return RatingModel(
    id: id ?? this.id,
    title: title ?? this.title,
    subtitle: subtitle ?? this.subtitle,
    ratingConfig: ratingConfig ?? this.ratingConfig,
  );
}