FlutterRating constructor

const FlutterRating({
  1. Key? key,
  2. int starCount = 5,
  3. double rating = 0.0,
  4. RatingChangeCallback? onRatingChanged,
  5. Color color = Colors.amber,
  6. Color borderColor = Colors.grey,
  7. double? size,
  8. bool allowHalfRating = false,
  9. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
})

Implementation

const FlutterRating({
  Key? key,
  this.starCount = 5,
  this.rating = 0.0,
  this.onRatingChanged,
  this.color = Colors.amber,
  this.borderColor = Colors.grey,
  this.size,
  this.allowHalfRating = false,
  this.mainAxisAlignment = MainAxisAlignment.center,
}) : super(key: key);