MenuParameters constructor

MenuParameters({
  1. required String engineId,
  2. required List<MenuItem> items,
})

Implementation

MenuParameters({
  /// ID of the engine to use.
  required String engineId,

  /// MenuItems to add or update. They will be added in the order they exist
  /// in the array.
  required List<MenuItem> items,
}) : _wrapped = $js.MenuParameters(
        engineID: engineId,
        items: items.toJSArray((e) => e.toJS),
      );