SlotOptions constructor

const SlotOptions({
  1. SlotMode mode = SlotMode.vertical,
  2. int direction = 1,
  3. double rowSpacing = 0,
  4. double colSpacing = kLuckySlotDefaultColSpacing,
  5. double? cellAspectRatio,
  6. LuckyMotionOptions motion = const LuckyMotionOptions(),
})

创建参数;比例为 null 时格子为正方形。

Implementation

const SlotOptions(
    {this.mode = SlotMode.vertical,
    this.direction = 1,
    this.rowSpacing = 0,
    this.colSpacing = kLuckySlotDefaultColSpacing,
    this.cellAspectRatio,
    this.motion = const LuckyMotionOptions()});