TouchMenu constructor
const
TouchMenu({
- required String title,
- Sound? music,
- Sound? selectItemSound,
- Sound? activateItemSound,
- Duration? musicFadeInTime,
- Duration? musicFadeOutTime,
- bool canPop = false,
- GameShortcutsShortcut backShortcut = GameShortcutsShortcut.escape,
- GameShortcutsShortcut downShortcut = GameShortcutsShortcut.arrowDown,
- GameShortcutsShortcut upShortcut = GameShortcutsShortcut.arrowUp,
- GameShortcutsShortcut activateShortcut = GameShortcutsShortcut.enter,
- 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,
});