WheelSector constructor

const WheelSector({
  1. required int index,
  2. required double middleRad,
  3. required double sweepRad,
  4. required Path fan,
  5. required Offset anchor,
  6. required double localRotation,
  7. required double prizeHeight,
  8. required double shortSide,
  9. required LuckyFill? background,
  10. required List<LuckyImagePlacement> images,
  11. 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});