SlotMachine constructor

const SlotMachine({
  1. Key? key,
  2. required List<RollItem> rollItems,
  3. int multiplyNumberOfSlotItems = 2,
  4. bool shuffle = true,
  5. double width = 232,
  6. double height = 96,
  7. double reelWidth = 72,
  8. double reelHeight = 96,
  9. double reelItemExtent = 48,
  10. double reelSpacing = 8,
  11. required dynamic onCreated(
    1. SlotMachineController
    ),
  12. required dynamic onFinished(
    1. List<int> resultIndexes
    ),
})

Implementation

const SlotMachine({
  Key? key,
  required this.rollItems,
  this.multiplyNumberOfSlotItems = 2,
  this.shuffle = true,
  this.width = 232,
  this.height = 96,
  this.reelWidth = 72,
  this.reelHeight = 96,
  this.reelItemExtent = 48,
  this.reelSpacing = 8,
  required this.onCreated,
  required this.onFinished,
}) : super(key: key);