menuWithTitle static method

UIMenu menuWithTitle(
  1. NSString title, {
  2. required NSArray children,
})

! @abstract Creates a UIMenu with the given arguments.

@param title The menu's title. @param children The menu's action-based sub-elements and sub-menus.

@return A new UIMenu.

Implementation

static UIMenu menuWithTitle(objc.NSString title, {required objc.NSArray children}) {
  final _ret = _objc_msgSend_15qeuct(
    _class_UIMenu,
    _sel_menuWithTitle_children_,
    title.ref.pointer,
    children.ref.pointer,
  );
  return UIMenu.castFromPointer(_ret, retain: true, release: true);
}