WheelPrize constructor
const
WheelPrize({
- LuckyFill? background,
- List<
LuckyText> texts = const [], - List<
LuckyImage> images = const [], - double? weight,
- double sectorWeight = 1,
- bool disabled = false,
- WheelPrizePainter? painter,
- 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});