XScoreWidget constructor

const XScoreWidget({
  1. Key? key,
  2. double value = 5,
  3. double maxRating = 5.0,
  4. int count = 5,
  5. double size = 22,
  6. String? nomalImage,
  7. String? selectImage,
  8. double padding = 6,
  9. bool selectAble = false,
  10. ValueChanged<String>? onRatingUpdate,
})

Implementation

const XScoreWidget({
  Key? key,
  double value = 5,
  this.maxRating = 5.0,
  this.count = 5,
  this.size = 22,
  this.nomalImage,
  this.selectImage,
  this.padding = 6,
  this.selectAble = false,
  this.onRatingUpdate,
})  : value = (value > maxRating) ? maxRating : value,
      super(key: key);