StarBar constructor

const StarBar({
  1. Key? key,
  2. required int maxStarCount,
  3. int starCount = 1,
  4. double starSize = 25,
  5. Widget? highlightStar,
  6. Widget? normalStar,
  7. Color normalColor = const Color(0xFFEBEBEB),
  8. Color highlightColor = const Color(0xFFF09630),
  9. ValueChanged<double>? onStarChanged,
})

Implementation

const StarBar(
    {Key? key,
    required this.maxStarCount,
    this.starCount = 1,
    this.starSize = 25,
    this.highlightStar,
    this.normalStar,
    this.normalColor = const Color(0xFFEBEBEB),
    this.highlightColor = const Color(0xFFF09630),
    this.onStarChanged})
    : assert(
          maxStarCount >= starCount && starCount >= 0,
          (normalStar == null && highlightStar == null) ||
              (normalStar != null && highlightStar != null)),
      super(key: key);