StarRating constructor

const StarRating({
  1. Key? key,
  2. int starCount = 5,
  3. int initialRating = 0,
  4. double starSize = 40.0,
  5. double starSpacing = 4.0,
  6. Color selectedFillColor = Colors.amber,
  7. bool showSelectedBorder = true,
  8. Color selectedStrokeColor = Colors.amber,
  9. double selectedStrokeWidth = 2.0,
  10. Color unselectedStrokeColor = Colors.grey,
  11. double unselectedStrokeWidth = 2.0,
  12. StarEdgeStyle starEdgeStyle = StarEdgeStyle.smooth,
  13. ValueChanged<int>? onRatingChanged,
  14. BoxDecoration? decoration,
})

Implementation

const StarRating({
  super.key,
  this.starCount = 5,
  this.initialRating = 0,
  this.starSize = 40.0,
  this.starSpacing = 4.0,
  this.selectedFillColor = Colors.amber,
  this.showSelectedBorder = true,
  this.selectedStrokeColor = Colors.amber,
  this.selectedStrokeWidth = 2.0,
  this.unselectedStrokeColor = Colors.grey,
  this.unselectedStrokeWidth = 2.0,
  this.starEdgeStyle = StarEdgeStyle.smooth,
  this.onRatingChanged,
  this.decoration,
});