WheelDisplay constructor

const WheelDisplay({
  1. Key? key,
  2. required List<WheelSegment> segments,
  3. required double angle,
  4. required double size,
  5. required bool showPointer,
  6. required double pointerOffset,
  7. required Color pointerColor,
  8. required bool animatePointerColor,
  9. required bool enableTapToSpin,
  10. required bool showCenterDot,
  11. required bool showWheelBorder,
  12. required Color wheelBorderColor,
  13. required double wheelBorderWidth,
  14. required TextStyle segmentTextStyle,
  15. required double segmentFontSize,
  16. required FontWeight segmentFontWeight,
  17. required Color segmentTextColor,
  18. required bool showWheelShadow,
  19. required double wheelShadowBlur,
  20. required Color wheelShadowColor,
  21. required double wheelShadowOffsetX,
  22. required double wheelShadowOffsetY,
  23. required double initialAngle,
  24. required double segmentGap,
  25. Widget? centerWidget,
  26. VoidCallback? onWheelTap,
  27. Widget? customPointer,
})

Implementation

const WheelDisplay({
  super.key,
  required this.segments,
  required this.angle,
  required this.size,
  required this.showPointer,
  required this.pointerOffset,
  required this.pointerColor,
  required this.animatePointerColor,
  required this.enableTapToSpin,
  required this.showCenterDot,
  required this.showWheelBorder,
  required this.wheelBorderColor,
  required this.wheelBorderWidth,
  required this.segmentTextStyle,
  required this.segmentFontSize,
  required this.segmentFontWeight,
  required this.segmentTextColor,
  required this.showWheelShadow,
  required this.wheelShadowBlur,
  required this.wheelShadowColor,
  required this.wheelShadowOffsetX,
  required this.wheelShadowOffsetY,
  required this.initialAngle,
  required this.segmentGap,
  this.centerWidget,
  this.onWheelTap,
  this.customPointer,
});