menu property

UIMenu? get menu

When non-nil the menu is presented, the gesture used to trigger the menu is based on if the bar button item would normally trigger an action when tapped.

Implementation

UIMenu? get menu {
  objc.checkOsVersionInternal('UIBarButtonItem.menu', iOS: (false, (14, 0, 0)));
  final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_menu);
  return _ret.address == 0 ? null : UIMenu.castFromPointer(_ret, retain: true, release: true);
}
set menu (UIMenu? value)

When non-nil the menu is presented, the gesture used to trigger the menu is based on if the bar button item would normally trigger an action when tapped.

Implementation

set menu(UIMenu? value) {
  objc.checkOsVersionInternal('UIBarButtonItem.setMenu:', iOS: (false, (14, 0, 0)));
  _objc_msgSend_xtuoz7(this.ref.pointer, _sel_setMenu_, value?.ref.pointer ?? ffi.nullptr);
}