Creates a new MenuItem for _menu and assigns an _action URL.
_menu
_action
Whether the menu item is enabled or not can also be specified.
MenuItem(this._menu, this._action, [this.enabled = true]);