actionWithTitle static method

UIAlertAction actionWithTitle(
  1. NSString? title, {
  2. required UIAlertActionStyle style,
  3. ObjCBlock<Void Function(UIAlertAction)>? handler,
})

actionWithTitle:style:handler:

Implementation

static UIAlertAction actionWithTitle(
  objc.NSString? title, {
  required UIAlertActionStyle style,
  objc.ObjCBlock<ffi.Void Function(UIAlertAction)>? handler,
}) {
  objc.checkOsVersionInternal('UIAlertAction.actionWithTitle:style:handler:', iOS: (false, (8, 0, 0)));
  final _ret = _objc_msgSend_cb5j6t(
    _class_UIAlertAction,
    _sel_actionWithTitle_style_handler_,
    title?.ref.pointer ?? ffi.nullptr,
    style.value,
    handler?.ref.pointer ?? ffi.nullptr,
  );
  return UIAlertAction.castFromPointer(_ret, retain: true, release: true);
}