SlotPrize constructor

const SlotPrize({
  1. LuckyFill? background,
  2. double? borderRadius,
  3. List<LuckyText> texts = const [],
  4. List<LuckyImage> images = const [],
  5. double? weight,
  6. bool disabled = false,
  7. SlotCellPainter? painter,
})

创建奖品;可选样式为 null 时继承默认值,圆角零也生效。

Implementation

const SlotPrize(
    {this.background,
    this.borderRadius,
    this.texts = const [],
    this.images = const [],
    this.weight,
    this.disabled = false,
    this.painter});