RatingDynamicSlider constructor

const RatingDynamicSlider({
  1. Key? key,
  2. required dynamic onValueChanged(
    1. double val
    ),
  3. required List<String> imagesList,
  4. double? trackHeight = 3,
  5. Color? thumbColor = Colors.blue,
  6. Color? activeTrackColor = Colors.blueGrey,
  7. Color? activeTickMarkColor = Colors.green,
  8. Color? inactiveTrackColor = Colors.black12,
  9. Color? overlayColor = Colors.cyan,
  10. Color? valueIndicatorColor = Colors.grey,
  11. Color? inactiveTickMarkColor = Colors.black87,
  12. double? thumbRadius = 11,
  13. double? overlayThumbRadius = 15,
  14. AssetDirection? assetDirection = AssetDirection.below,
  15. double? tickMarkRadius = 4,
})

Implementation

const RatingDynamicSlider({
  Key? key,
  required this.onValueChanged,
  required this.imagesList,
  this.trackHeight = 3,
  this.thumbColor = Colors.blue,
  this.activeTrackColor = Colors.blueGrey,
  this.activeTickMarkColor = Colors.green,
  this.inactiveTrackColor = Colors.black12,
  this.overlayColor = Colors.cyan,
  this.valueIndicatorColor = Colors.grey,
  this.inactiveTickMarkColor = Colors.black87,
  this.thumbRadius = 11,
  this.overlayThumbRadius = 15,
  this.assetDirection = AssetDirection.below,
  this.tickMarkRadius = 4,
})  : assert(imagesList.length >= 2, "Please add more than 2 images to draw the slider"),
      super(key: key);