WheelSector constructor
const
WheelSector({
- required int index,
- required double middleRad,
- required double sweepRad,
- required Path fan,
- required Offset anchor,
- required double localRotation,
- required double prizeHeight,
- required double shortSide,
- required LuckyFill? background,
- required List<
LuckyImagePlacement> images, - required List<
LuckyTextLine> texts,
创建扇区几何,长度单位为逻辑像素。
Implementation
const WheelSector(
{required this.index,
required this.middleRad,
required this.sweepRad,
required this.fan,
required this.anchor,
required this.localRotation,
required this.prizeHeight,
required this.shortSide,
required this.background,
required this.images,
required this.texts});