StarRating constructor
const
StarRating({
- Key? key,
- int starCount = 5,
- int initialRating = 0,
- double starSize = 40.0,
- double starSpacing = 4.0,
- Color selectedFillColor = Colors.amber,
- bool showSelectedBorder = true,
- Color selectedStrokeColor = Colors.amber,
- double selectedStrokeWidth = 2.0,
- Color unselectedStrokeColor = Colors.grey,
- double unselectedStrokeWidth = 2.0,
- StarEdgeStyle starEdgeStyle = StarEdgeStyle.smooth,
- ValueChanged<
int> ? onRatingChanged, - 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,
});