NiceRatingSummary constructor

const NiceRatingSummary({
  1. Key? key,
  2. required double averageRating,
  3. required int totalReviews,
  4. required Map<int, int> ratingDistribution,
  5. double starSize = 20,
  6. Color? activeColor,
  7. Color? barColor,
  8. bool showLabels = true,
})

Implementation

const NiceRatingSummary({
  super.key,
  required this.averageRating,
  required this.totalReviews,
  required this.ratingDistribution,
  this.starSize = 20,
  this.activeColor,
  this.barColor,
  this.showLabels = true,
});