MenuItem constructor

MenuItem(
  1. Node _menu,
  2. GeigerUrl _action, [
  3. bool enabled = true
])

Creates a new MenuItem for _menu and assigns an _action URL.

Whether the menu item is enabled or not can also be specified.

Implementation

MenuItem(this._menu, this._action, [this.enabled = true]);