WheelDisplay constructor

const WheelDisplay({
  1. Key? key,
  2. required AnimationController controller,
  3. required List<WheelSegment> segments,
  4. required double startRotation,
  5. required double endRotation,
  6. Widget? centerChild,
  7. Widget? indicator,
  8. Color? wheelColor,
  9. Color? indicatorColor,
  10. double? imageHeight,
  11. double? imageWidth,
  12. WheelLabelStyle? labelStyle,
  13. double minSize = 100.0,
  14. double maxSize = double.infinity,
  15. double aspectRatio = 1.0,
  16. Widget? background,
  17. bool shouldDrawBackground = true,
  18. EdgeInsets slicePadding = EdgeInsets.zero,
})

Creates a WheelDisplay.

Implementation

const WheelDisplay({
  super.key,
  required this.controller,
  required this.segments,
  required this.startRotation,
  required this.endRotation,
  this.centerChild,
  this.indicator,
  this.wheelColor,
  this.indicatorColor,
  this.imageHeight,
  this.imageWidth,
  this.labelStyle,
  this.minSize = 100.0,
  this.maxSize = double.infinity,
  this.aspectRatio = 1.0,
  this.background,
  this.shouldDrawBackground = true,
  this.slicePadding = EdgeInsets.zero,
});