starRating method
Widget
starRating(
- BuildContext context,
- double rating, {
- int? length,
- Color? color,
- double? iconSize,
- Widget? customStarIcon,
- Widget? customEmptyStarIcon,
- Widget? customHalfStarIcon,
- dynamic onChange(
- double rating
)?,
- double? spacing,
- bool? allowHalfRating,
})
Implementation
Widget starRating(BuildContext context, double rating,
{int? length,
Color? color,
double? iconSize,
Widget? customStarIcon,
Widget? customEmptyStarIcon,
Widget? customHalfStarIcon,
Function(double rating)? onChange,
double? spacing,
bool? allowHalfRating}) {
return CustomStarRating(
rating: rating,
length: length,
color: color,
iconSize: iconSize,
customStarIcon: customStarIcon,
customEmptyStarIcon: customEmptyStarIcon,
customHalfStarIcon: customHalfStarIcon,
onChange: onChange,
spacing: spacing,
allowHalfRating: allowHalfRating ?? true,
);
}