starRating method

Widget starRating(
  1. BuildContext context,
  2. double rating, {
  3. int? length,
  4. Color? color,
  5. double? iconSize,
  6. Widget? customStarIcon,
  7. Widget? customEmptyStarIcon,
  8. Widget? customHalfStarIcon,
  9. dynamic onChange(
    1. double rating
    )?,
  10. double? spacing,
  11. 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,
  );
}