onValueChanged property
onValueChanged if it is not null RatingStars is able to click to change the value, and it is calculated by rounded star count only. Ex: maxValue is 12, starCount is 5, clicked on 3th star, onValueChanged is called with value is 3*12/5=7.2
Implementation
final Function(double value)? onValueChanged;