FlutterRating constructor
const
FlutterRating({
- Key? key,
- int starCount = 5,
- double rating = 0.0,
- RatingChangeCallback? onRatingChanged,
- Color color = Colors.amber,
- Color borderColor = Colors.grey,
- double? size,
- bool allowHalfRating = false,
- 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);