buildRow method
Implementation
List<Widget> buildRow() {
final int full = fullStars();
final List<Widget> children = [];
for (int i = 0; i < full; i++) {
children.add(getStarItemView(
widget.selectImage,
widget.selectionColor,
));
if (i < widget.count - 1) {
children.add(
SizedBox(
width: widget.padding,
),
);
}
}
if (full < widget.count) {
children.add(ClipRect(
clipper: _VxClipper(
rating: star() * widget.size,
),
child: getStarItemView(
widget.selectImage,
widget.selectionColor,
),
));
}
return children;
}