WheelPrize constructor

const WheelPrize({
  1. LuckyFill? background,
  2. List<LuckyText> texts = const [],
  3. List<LuckyImage> images = const [],
  4. double? weight,
  5. double sectorWeight = 1,
  6. bool disabled = false,
  7. WheelPrizePainter? painter,
  8. String? semanticsLabel,
})

创建奖品;sectorWeight 应为有限正数,weight 缺省时不可被默认 picker 选中。

Implementation

const WheelPrize(
    {this.background,
    this.texts = const [],
    this.images = const [],
    this.weight,
    this.sectorWeight = 1,
    this.disabled = false,
    this.painter,
    this.semanticsLabel});