CapsulePrize constructor
const
CapsulePrize({
- required LuckyFill topFill,
- required LuckyFill bottomFill,
- List<
LuckyText> texts = const [], - List<
LuckyImage> images = const [], - double? weight,
- bool disabled = false,
- CapsulePrizePainter? painter,
创建不可变配置;列表由调用方保持不可变。
Implementation
const CapsulePrize(
{required this.topFill,
required this.bottomFill,
this.texts = const [],
this.images = const [],
this.weight,
this.disabled = false,
this.painter});