WheelDisplay constructor

const WheelDisplay({
  1. Key? key,
  2. required SpinnerWheel config,
  3. required Animation<double> animation,
  4. required List<WheelSegment> segments,
  5. required WheelGeometry geometry,
  6. required double startRotation,
  7. required double endRotation,
  8. List<ImageLoadState> imageStates = const [],
  9. int? highlightIndex,
  10. Animation<double>? indicatorTick,
  11. bool clockwise = true,
  12. String? semanticsValue,
  13. VoidCallback? onCenterTap,
  14. VoidCallback? onDragStart,
  15. void onDragUpdate(
    1. Offset position,
    2. Offset delta,
    3. double size
    )?,
  16. void onDragEnd(
    1. Velocity velocity,
    2. double size
    )?,
  17. double minSize = 100.0,
  18. double maxSize = double.infinity,
  19. double aspectRatio = 1.0,
})

Creates a WheelDisplay.

Implementation

const WheelDisplay({
  super.key,
  required this.config,
  required this.animation,
  required this.segments,
  required this.geometry,
  required this.startRotation,
  required this.endRotation,
  this.imageStates = const [],
  this.highlightIndex,
  this.indicatorTick,
  this.clockwise = true,
  this.semanticsValue,
  this.onCenterTap,
  this.onDragStart,
  this.onDragUpdate,
  this.onDragEnd,
  this.minSize = 100.0,
  this.maxSize = double.infinity,
  this.aspectRatio = 1.0,
});