StarRatingOptions constructor
const
StarRatingOptions({
- RatingWidget? ratingWidget,
- IndexedWidgetBuilder? itemBuilder,
- double initialRating = 0,
- double minRating = 0,
- bool allowHalfRating = false,
- EdgeInsetsGeometry itemPadding = const EdgeInsets.symmetric(horizontal: 2),
- double itemSize = 40,
- int itemCount = 5,
- Color itemColor = Colors.orangeAccent,
- Color? borderColor,
- bool glow = false,
- double glowRadius = 2,
- Color glowColor = Colors.orangeAccent,
- Axis direction = Axis.horizontal,
- bool tapOnlyMode = false,
- WrapAlignment wrapAlignment = WrapAlignment.start,
Creates a new star rating options instance.
Implementation
const StarRatingOptions({
this.ratingWidget,
this.itemBuilder,
this.initialRating = 0,
this.minRating = 0,
this.allowHalfRating = false,
this.itemPadding = const EdgeInsets.symmetric(horizontal: 2),
this.itemSize = 40,
this.itemCount = 5,
this.itemColor = Colors.orangeAccent,
this.borderColor,
this.glow = false,
this.glowRadius = 2,
this.glowColor = Colors.orangeAccent,
this.direction = Axis.horizontal,
this.tapOnlyMode = false,
this.wrapAlignment = WrapAlignment.start,
});