menu top-level property

({List<int> options, List<String> sounds}) menu
getter/setter pair

Implementation

var menu = (
  // valid menu options
  options: [1, 2, 3, 4, 5, 6, 7, 8, 9],
  // note: this uses the 'extra' sounds package
  sounds: ['sound:welcome', 'sound:main_menu'],
);