activate method
void
activate()
Activate the currently-focused menu item.
Implementation
void activate() {
final activator = currentMenuItem?.activator;
if (activator != null) {
activator.onActivate();
final sound = activator.sound;
if (sound != null) {
oldSound = game.outputSound(
sound: sound,
keepAlive: true,
soundChannel: soundChannel,
);
}
}
}