StarRatingOptions constructor

const StarRatingOptions({
  1. RatingWidget? ratingWidget,
  2. IndexedWidgetBuilder? itemBuilder,
  3. double initialRating = 0,
  4. double minRating = 0,
  5. bool allowHalfRating = false,
  6. EdgeInsetsGeometry itemPadding = const EdgeInsets.symmetric(horizontal: 2),
  7. double itemSize = 40,
  8. int itemCount = 5,
  9. Color itemColor = Colors.orangeAccent,
  10. Color? borderColor,
  11. bool glow = false,
  12. double glowRadius = 2,
  13. Color glowColor = Colors.orangeAccent,
  14. Axis direction = Axis.horizontal,
  15. bool tapOnlyMode = false,
  16. 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,
});