star method

num star()

Implementation

num star() {
  if (value != null) {
    if (widget.count / fullStars() == widget.maxRating / value!) {
      return 0;
    }
    final num temp = (value! % (widget.maxRating / widget.count)) /
        (widget.maxRating / widget.count);
    if (widget.stepInt) {
      return temp.ceil();
    }
    return temp;
  }
  return 0;
}