LuckyLeverSlotMachine constructor
const
LuckyLeverSlotMachine({
- Key? key,
- required SlotConfig config,
- LuckyController<
SlotConfig, SlotLayout, SlotFrame, SlotResult> ? controller, - LeverOptions lever = const LeverOptions(),
- VoidCallback? onPull,
- LuckyRenderer<
SlotConfig, SlotLayout, SlotFrame, SlotResult> ? renderer, - double? width,
- double? height,
- AlignmentGeometry alignment = Alignment.topLeft,
- ValueChanged<
SlotResult> ? onEnd, - ValueChanged<
LuckyPhase> ? onPhaseChanged, - void onCellPassed()?,
- ValueChanged<
LuckyImageError> ? onImageError, - VoidCallback? onReady,
- LuckyHooks hooks = const LuckyHooks(),
- List<
LuckyLayer< layers = const [],SlotLayout, SlotFrame> > - LuckyPerformanceOptions performance = const LuckyPerformanceOptions(),
- LuckyTextScaling textScaling = LuckyTextScaling.none,
- String? semanticsLabel,
- String semanticsValueBuilder(
- LuckyPhase phase,
- SlotResult? result
创建拉霸机;宽高包含拉杆区,其余参数与 LuckySlotMachine 一致。
Implementation
const LuckyLeverSlotMachine(
{super.key,
required super.config,
super.controller,
this.lever = const LeverOptions(),
this.onPull,
super.renderer,
super.width,
super.height,
super.alignment,
super.onEnd,
super.onPhaseChanged,
super.onCellPassed,
super.onImageError,
super.onReady,
super.hooks,
super.layers,
super.performance,
super.textScaling,
super.semanticsLabel,
super.semanticsValueBuilder});