menuWithTitle$1 static method
! @abstract Creates a UIMenu with the given arguments.
@param title The menu's title. @param image Image to be displayed alongside the menu's title. @param identifier The menu's unique identifier. Pass nil to use an auto-generated identifier. @param options The menu's options. @param children The menu's action-based sub-elements and sub-menus.
@return A new UIMenu.
Implementation
static UIMenu menuWithTitle$1(
objc.NSString title, {
UIImage? image,
objc.NSString? identifier,
required UIMenuOptions options,
required objc.NSArray children,
}) {
final _ret = _objc_msgSend_zjuvxo(
_class_UIMenu,
_sel_menuWithTitle_image_identifier_options_children_,
title.ref.pointer,
image?.ref.pointer ?? ffi.nullptr,
identifier?.ref.pointer ?? ffi.nullptr,
options.value,
children.ref.pointer,
);
return UIMenu.castFromPointer(_ret, retain: true, release: true);
}