SpinnerWheel constructor

const SpinnerWheel({
  1. Key? key,
  2. required SpinnerController controller,
  3. required List<WheelSegment> segments,
  4. required dynamic onComplete(
    1. WheelSegment,
    2. int
    ),
  5. Color? wheelColor,
  6. Color? indicatorColor,
  7. Widget? centerChild,
  8. Widget? indicator,
  9. double? imageHeight,
  10. double? imageWidth,
  11. WheelLabelStyle? labelStyle,
  12. Widget? background,
  13. bool shouldDrawBackground = true,
  14. EdgeInsets slicePadding = EdgeInsets.zero,
})

Creates a SpinnerWheel.

Implementation

const SpinnerWheel({
  super.key,
  required this.controller,
  required this.segments,
  required this.onComplete,
  this.wheelColor,
  this.indicatorColor,
  this.centerChild,
  this.indicator,
  this.imageHeight,
  this.imageWidth,
  this.labelStyle,
  this.background,
  this.shouldDrawBackground = true,
  this.slicePadding = EdgeInsets.zero,
});