WheelDisplay constructor
const
WheelDisplay({
- Key? key,
- required SpinnerWheel config,
- required Animation<
double> animation, - required List<
WheelSegment> segments, - required WheelGeometry geometry,
- required double startRotation,
- required double endRotation,
- List<
ImageLoadState> imageStates = const [], - int? highlightIndex,
- Animation<
double> ? indicatorTick, - bool clockwise = true,
- String? semanticsValue,
- VoidCallback? onCenterTap,
- VoidCallback? onDragStart,
- void onDragUpdate()?,
- void onDragEnd()?,
- double minSize = 100.0,
- double maxSize = double.infinity,
- 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,
});