ScoreIndicator constructor

ScoreIndicator({
  1. Key? key,
  2. required Text label,
  3. required int count,
  4. required int score,
  5. double radius = 4.0,
  6. required Color filledIndicatorColor,
  7. Color emptyIndicatorColor = Colors.grey,
})

Implementation

ScoreIndicator({
  Key? key,
  required this.label,
  required this.count,
  required this.score,
  this.radius = 4.0,
  required this.filledIndicatorColor,
  this.emptyIndicatorColor = Colors.grey,
})  : assert(count > 0),
      assert(score >= 0 && score <= count),
      assert(radius > 0),
      super(key: key);