| // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| |
| // coverage:ignore-file |
| |
| // AUTO GENERATED FILE, DO NOT EDIT. |
| // |
| // Generated by `package:ffigen`. |
| // ignore_for_file: type=lint, unused_import, unused_element, deprecated_member_use_from_same_package |
| import 'dart:ffi' as ffi; |
| import 'package:objective_c/objective_c.dart' as objc; |
| import 'package:ffi/ffi.dart' as pkg_ffi; |
| |
| const _$objcVersionCheck = objc.ObjCVersionCheck(9, 6); |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args) |
| > |
| >, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _17w5sbb_wrapBlockingBlock_xtuoz7( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ffi.Pointer< |
| ffi.NativeFunction<ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> args)> |
| > |
| directInvoke, |
| ); |
| |
| @ffi.Native< |
| ffi.Pointer<objc.ObjCBlockImpl> Function( |
| ffi.Int64, |
| ffi.Pointer<objc.DOBJC_Context>, |
| ) |
| >(isLeaf: true) |
| external ffi.Pointer<objc.ObjCBlockImpl> _17w5sbb_wrapListenerBlock_xtuoz7( |
| int port, |
| ffi.Pointer<objc.DOBJC_Context> context, |
| ); |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(objc.NSObject?)>`. |
| abstract final class ObjCBlock_ffiVoid_NSObject { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock<ffi.Void Function(objc.NSObject?)> fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => objc.ObjCBlock<ffi.Void Function(objc.NSObject?)>( |
| pointer, |
| retain: retain, |
| release: release, |
| ); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock<ffi.Void Function(objc.NSObject?)> fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> arg0) |
| > |
| > |
| ptr, |
| ) => objc.ObjCBlock<ffi.Void Function(objc.NSObject?)>( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(objc.NSObject?)> fromFunction( |
| void Function(objc.NSObject?) fn, { |
| bool keepIsolateAlive = true, |
| }) => objc.ObjCBlock<ffi.Void Function(objc.NSObject?)>( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) { |
| return fn( |
| arg0.address == 0 |
| ? null |
| : objc.NSObject.fromPointer(arg0, retain: true, release: true), |
| ); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(objc.NSObject?)> listener( |
| void Function(objc.NSObject?) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function(objc.NSObject?)>( |
| objc.newBlockPort(_17w5sbb_wrapListenerBlock_xtuoz7, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1n468bj.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock<ffi.Void Function(objc.NSObject?)> blocking( |
| void Function(objc.NSObject?) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function(objc.NSObject?)>( |
| objc.newBlockingBlockPort(_17w5sbb_wrapBlockingBlock_xtuoz7, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1n468bj.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> arg0) |
| > |
| >() |
| .asFunction<void Function(ffi.Pointer<objc.ObjCObjectImpl>)>()(arg0); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function(ffi.Pointer<objc.ObjCObjectImpl>))(arg0); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(objc.NSObject?)>`. |
| extension ObjCBlock_ffiVoid_NSObject$CallExtension |
| on objc.ObjCBlock<ffi.Void Function(objc.NSObject?)> { |
| void call(objc.NSObject? arg0) { |
| final _$$ref = arg0?.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(ref.pointer, _$$ref?.pointer ?? ffi.nullptr); |
| } |
| } |
| |
| /// Construction methods for `objc.ObjCBlock<ffi.Void Function(objc.NSString)>`. |
| abstract final class ObjCBlock_ffiVoid_NSString { |
| /// Returns a block that wraps the given raw block pointer. |
| static objc.ObjCBlock<ffi.Void Function(objc.NSString)> fromPointer( |
| ffi.Pointer<objc.ObjCBlockImpl> pointer, { |
| bool retain = false, |
| bool release = false, |
| }) => objc.ObjCBlock<ffi.Void Function(objc.NSString)>( |
| pointer, |
| retain: retain, |
| release: release, |
| ); |
| |
| /// Creates a block from a C function pointer. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| static objc.ObjCBlock<ffi.Void Function(objc.NSString)> fromFunctionPointer( |
| ffi.Pointer< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> arg0) |
| > |
| > |
| ptr, |
| ) => objc.ObjCBlock<ffi.Void Function(objc.NSString)>( |
| objc.newPointerBlock(_fnPtrCallable, ptr.cast()), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a block from a Dart function. |
| /// |
| /// This block must be invoked by native code running on the same thread as |
| /// the isolate that registered it. Invoking the block on the wrong thread |
| /// will result in a crash. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(objc.NSString)> fromFunction( |
| void Function(objc.NSString) fn, { |
| bool keepIsolateAlive = true, |
| }) => objc.ObjCBlock<ffi.Void Function(objc.NSString)>( |
| objc.newClosureBlock(_closureCallable, ( |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) { |
| return fn(objc.NSString.fromPointer(arg0, retain: true, release: true)); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| |
| /// Creates a listener block from a Dart function. |
| /// |
| /// This block can be invoked from any thread, but only supports void |
| /// functions, and is not run synchronously. Async functions (ie returning |
| /// Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. |
| static objc.ObjCBlock<ffi.Void Function(objc.NSString)> listener( |
| void Function(objc.NSString) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function(objc.NSString)>( |
| objc.newBlockPort(_17w5sbb_wrapListenerBlock_xtuoz7, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1vzvc26.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| /// Creates a blocking block from a Dart function. |
| /// |
| /// This callback can be invoked from any native thread, and will block the |
| /// caller until the callback is handled by the Dart isolate that created |
| /// the block. Async functions (ie returning Future<void>) are not supported. |
| /// |
| /// If `keepIsolateAlive` is true, this block will keep this isolate alive |
| /// until it is garbage collected by both Dart and ObjC. If the owner isolate |
| /// has shut down, and the block is invoked by native code, it may block |
| /// indefinitely, or have other undefined behavior. |
| static objc.ObjCBlock<ffi.Void Function(objc.NSString)> blocking( |
| void Function(objc.NSString) fn, { |
| bool keepIsolateAlive = true, |
| }) { |
| return objc.ObjCBlock<ffi.Void Function(objc.NSString)>( |
| objc.newBlockingBlockPort(_17w5sbb_wrapBlockingBlock_xtuoz7, ( |
| ffi.Pointer<objc.ObjCObjectImpl> rawArgs, |
| ) { |
| final args = _BlockArgs_1vzvc26.fromPointer( |
| rawArgs, |
| retain: false, |
| release: false, |
| ); |
| |
| fn(args.arg0); |
| }, keepIsolateAlive), |
| retain: false, |
| release: true, |
| ); |
| } |
| |
| static void _fnPtrTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) => block.ref.target |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function(ffi.Pointer<objc.ObjCObjectImpl> arg0) |
| > |
| >() |
| .asFunction<void Function(ffi.Pointer<objc.ObjCObjectImpl>)>()(arg0); |
| static ffi.Pointer<ffi.Void> _fnPtrCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_fnPtrTrampoline) |
| .cast(); |
| static void _closureTrampoline( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) => |
| (objc.getBlockClosure(block) |
| as void Function(ffi.Pointer<objc.ObjCObjectImpl>))(arg0); |
| static ffi.Pointer<ffi.Void> _closureCallable = |
| ffi.Pointer.fromFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(_closureTrampoline) |
| .cast(); |
| } |
| |
| /// Call operator for `objc.ObjCBlock<ffi.Void Function(objc.NSString)>`. |
| extension ObjCBlock_ffiVoid_NSString$CallExtension |
| on objc.ObjCBlock<ffi.Void Function(objc.NSString)> { |
| void call(objc.NSString arg0) { |
| final _$$ref = arg0.ref; |
| return ref.pointer.ref.invoke |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCBlockImpl> block, |
| ffi.Pointer<objc.ObjCObjectImpl> arg0, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >()(ref.pointer, _$$ref.pointer); |
| } |
| } |
| |
| /// TestMessageService |
| extension type TestMessageService._(objc.ObjCObject object$) |
| implements objc.ObjCObject, objc.NSObject { |
| /// Constructs a [TestMessageService] that points to the same underlying object as [other]. |
| TestMessageService.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [TestMessageService] that wraps the given raw object pointer. |
| TestMessageService.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [TestMessageService]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class_TestMessageService, |
| ); |
| |
| /// alloc |
| static TestMessageService alloc() { |
| final $ret = _objc_msgSend_151sglz(_class_TestMessageService, _sel_alloc); |
| return TestMessageService.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// allocWithZone: |
| static TestMessageService allocWithZone(ffi.Pointer<objc.NSZone> zone) { |
| final $ret = _objc_msgSend_1cwp428( |
| _class_TestMessageService, |
| _sel_allocWithZone_, |
| zone, |
| ); |
| return TestMessageService.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// echoAsyncObjectWithAnObject:completionHandler: |
| static void echoAsyncObjectWithAnObject( |
| objc.NSObject anObject, { |
| required objc.ObjCBlock<ffi.Void Function(objc.NSObject?)> |
| completionHandler, |
| }) { |
| final _$$ref = anObject.ref; |
| final _$$ref$1 = completionHandler.ref; |
| _objc_msgSend_o762yo( |
| _class_TestMessageService, |
| _sel_echoAsyncObjectWithAnObject_completionHandler_, |
| _$$ref.pointer, |
| _$$ref$1.pointer, |
| ); |
| } |
| |
| /// fetchGreetingAsyncWithCompletionHandler: |
| static void fetchGreetingAsyncWithCompletionHandler( |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)> completionHandler, |
| ) { |
| final _$$ref = completionHandler.ref; |
| _objc_msgSend_f167m6( |
| _class_TestMessageService, |
| _sel_fetchGreetingAsyncWithCompletionHandler_, |
| _$$ref.pointer, |
| ); |
| } |
| |
| /// fetchGreetingWithCompletion: |
| static void fetchGreetingWithCompletion( |
| objc.ObjCBlock<ffi.Void Function(objc.NSString)> completion, |
| ) { |
| final _$$ref = completion.ref; |
| _objc_msgSend_f167m6( |
| _class_TestMessageService, |
| _sel_fetchGreetingWithCompletion_, |
| _$$ref.pointer, |
| ); |
| } |
| |
| /// new |
| static TestMessageService new$() { |
| final $ret = _objc_msgSend_151sglz(_class_TestMessageService, _sel_new); |
| return TestMessageService.fromPointer($ret, retain: false, release: true); |
| } |
| |
| /// Returns a new instance of TestMessageService constructed with the default `new` method. |
| TestMessageService() : this.as(new$().object$); |
| } |
| |
| extension TestMessageService$Methods on TestMessageService { |
| /// init |
| TestMessageService init() { |
| final _$$ref = object$.ref; |
| objc.checkOsVersionInternal( |
| 'TestMessageService.init', |
| iOS: (false, (2, 0, 0)), |
| macOS: (false, (10, 0, 0)), |
| ); |
| final $ret = _objc_msgSend_151sglz( |
| _$$ref.retainAndReturnPointer(), |
| _sel_init, |
| ); |
| return TestMessageService.fromPointer($ret, retain: false, release: true); |
| } |
| } |
| |
| extension type _BlockArgs_1n468bj._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_1n468bj] that points to the same underlying object as [other]. |
| _BlockArgs_1n468bj.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_1n468bj] that wraps the given raw object pointer. |
| _BlockArgs_1n468bj.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_1n468bj]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_1n468bj, |
| ); |
| } |
| |
| extension _BlockArgs_1n468bj$Methods on _BlockArgs_1n468bj { |
| objc.NSObject? get arg0 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); |
| return $ret.address == 0 |
| ? null |
| : objc.NSObject.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| extension type _BlockArgs_1vzvc26._(objc.ObjCObject object$) |
| implements objc.ObjCObject { |
| /// Constructs a [_BlockArgs_1vzvc26] that points to the same underlying object as [other]. |
| _BlockArgs_1vzvc26.as(objc.ObjCObject other) : object$ = other { |
| assert(isA(object$)); |
| } |
| |
| /// Constructs a [_BlockArgs_1vzvc26] that wraps the given raw object pointer. |
| _BlockArgs_1vzvc26.fromPointer( |
| ffi.Pointer<objc.ObjCObjectImpl> other, { |
| bool retain = false, |
| bool release = false, |
| }) : object$ = objc.ObjCObject(other, retain: retain, release: release) { |
| assert(isA(object$)); |
| } |
| |
| /// Returns whether [obj] is an instance of [_BlockArgs_1vzvc26]. |
| static bool isA(objc.ObjCObject? obj) => obj == null |
| ? false |
| : _objc_msgSend_19nvye5( |
| obj.ref.pointer, |
| _sel_isKindOfClass_, |
| _class__BlockArgs_1vzvc26, |
| ); |
| } |
| |
| extension _BlockArgs_1vzvc26$Methods on _BlockArgs_1vzvc26 { |
| objc.NSString get arg0 { |
| final _$$ref = object$.ref; |
| final $ret = _objc_msgSend_151sglz(_$$ref.pointer, _sel_arg0); |
| return objc.NSString.fromPointer($ret, retain: true, release: true); |
| } |
| } |
| |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__TtC9callbacks18TestMessageService', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class_TestMessageService_raw; |
| final _class_TestMessageService = objc.getClass( |
| "callbacks.TestMessageService", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class_TestMessageService_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__17w5sbb_BlockArgs_xtuoz7', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_1n468bj_raw; |
| final _class__BlockArgs_1n468bj = objc.getClass( |
| "_17w5sbb_BlockArgs_xtuoz7", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_1n468bj_raw, |
| ).cast(), |
| ); |
| @ffi.Native<ffi.Pointer<objc.ObjCObjectImpl>>( |
| symbol: 'OBJC_CLASS_\$__17w5sbb_BlockArgs_xtuoz7', |
| ) |
| external ffi.Pointer<objc.ObjCObjectImpl> _class__BlockArgs_1vzvc26_raw; |
| final _class__BlockArgs_1vzvc26 = objc.getClass( |
| "_17w5sbb_BlockArgs_xtuoz7", |
| () => ffi.Native.addressOf<ffi.Pointer<objc.ObjCObjectImpl>>( |
| _class__BlockArgs_1vzvc26_raw, |
| ).cast(), |
| ); |
| final _objc_msgSend_151sglz = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ) |
| >(); |
| final _objc_msgSend_19nvye5 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| bool Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ) |
| >(); |
| final _objc_msgSend_1cwp428 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.NSZone>, |
| ) |
| > |
| >() |
| .asFunction< |
| ffi.Pointer<objc.ObjCObjectImpl> Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.NSZone>, |
| ) |
| >(); |
| final _objc_msgSend_f167m6 = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| final _objc_msgSend_o762yo = objc.msgSendPointer |
| .cast< |
| ffi.NativeFunction< |
| ffi.Void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| > |
| >() |
| .asFunction< |
| void Function( |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCSelector>, |
| ffi.Pointer<objc.ObjCObjectImpl>, |
| ffi.Pointer<objc.ObjCBlockImpl>, |
| ) |
| >(); |
| late final _sel_alloc = objc.registerName("alloc"); |
| late final _sel_allocWithZone_ = objc.registerName("allocWithZone:"); |
| late final _sel_arg0 = objc.registerName("arg0"); |
| late final _sel_echoAsyncObjectWithAnObject_completionHandler_ = objc |
| .registerName("echoAsyncObjectWithAnObject:completionHandler:"); |
| late final _sel_fetchGreetingAsyncWithCompletionHandler_ = objc.registerName( |
| "fetchGreetingAsyncWithCompletionHandler:", |
| ); |
| late final _sel_fetchGreetingWithCompletion_ = objc.registerName( |
| "fetchGreetingWithCompletion:", |
| ); |
| late final _sel_init = objc.registerName("init"); |
| late final _sel_isKindOfClass_ = objc.registerName("isKindOfClass:"); |
| late final _sel_new = objc.registerName("new"); |
| typedef instancetype = ffi.Pointer<objc.ObjCObjectImpl>; |
| typedef Dartinstancetype = objc.ObjCObject; |