TouchMenu constructor

const TouchMenu({
  1. required String title,
  2. required List<AudioGameMenuItem> menuItems,
  3. Sound? music,
  4. Sound? selectItemSound,
  5. Sound? activateItemSound,
  6. Duration? musicFadeInTime,
  7. Duration? musicFadeOutTime,
  8. bool canPop = false,
  9. GameShortcutsShortcut backShortcut = GameShortcutsShortcut.escape,
  10. GameShortcutsShortcut downShortcut = GameShortcutsShortcut.arrowDown,
  11. GameShortcutsShortcut upShortcut = GameShortcutsShortcut.arrowUp,
  12. GameShortcutsShortcut activateShortcut = GameShortcutsShortcut.enter,
  13. Key? key,
})

Create an instance.

Implementation

const TouchMenu({
  required this.title,
  required this.menuItems,
  this.music,
  this.selectItemSound,
  this.activateItemSound,
  this.musicFadeInTime,
  this.musicFadeOutTime,
  this.canPop = false,
  this.backShortcut = GameShortcutsShortcut.escape,
  this.downShortcut = GameShortcutsShortcut.arrowDown,
  this.upShortcut = GameShortcutsShortcut.arrowUp,
  this.activateShortcut = GameShortcutsShortcut.enter,
  super.key,
});