LuckyLeverSlotMachine constructor

const LuckyLeverSlotMachine({
  1. Key? key,
  2. required SlotConfig config,
  3. LuckyController<SlotConfig, SlotLayout, SlotFrame, SlotResult>? controller,
  4. LeverOptions lever = const LeverOptions(),
  5. VoidCallback? onPull,
  6. LuckyRenderer<SlotConfig, SlotLayout, SlotFrame, SlotResult>? renderer,
  7. double? width,
  8. double? height,
  9. AlignmentGeometry alignment = Alignment.topLeft,
  10. ValueChanged<SlotResult>? onEnd,
  11. ValueChanged<LuckyPhase>? onPhaseChanged,
  12. void onCellPassed(
    1. int reel,
    2. int prizeIndex
    )?,
  13. ValueChanged<LuckyImageError>? onImageError,
  14. VoidCallback? onReady,
  15. LuckyHooks hooks = const LuckyHooks(),
  16. List<LuckyLayer<SlotLayout, SlotFrame>> layers = const [],
  17. LuckyPerformanceOptions performance = const LuckyPerformanceOptions(),
  18. LuckyTextScaling textScaling = LuckyTextScaling.none,
  19. String? semanticsLabel,
  20. String semanticsValueBuilder(
    1. LuckyPhase phase,
    2. 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});