CapsulePrize constructor

const CapsulePrize({
  1. required LuckyFill topFill,
  2. required LuckyFill bottomFill,
  3. List<LuckyText> texts = const [],
  4. List<LuckyImage> images = const [],
  5. double? weight,
  6. bool disabled = false,
  7. CapsulePrizePainter? painter,
})

创建不可变配置;列表由调用方保持不可变。

Implementation

const CapsulePrize(
    {required this.topFill,
    required this.bottomFill,
    this.texts = const [],
    this.images = const [],
    this.weight,
    this.disabled = false,
    this.painter});