sizeWithAttributes method
sizeWithAttributes:
Implementation
objc.CGSize sizeWithAttributes(objc.NSDictionary? attrs) {
objc.checkOsVersionInternal('NSString.sizeWithAttributes:', iOS: (false, (7, 0, 0)), macOS: (false, (10, 0, 0)));
final $ptr = pkg_ffi.calloc<objc.CGSize>();
objc.useMsgSendVariants ? _objc_msgSend_18r320vStret($ptr, object$.ref.pointer, _sel_sizeWithAttributes_, attrs?.ref.pointer ?? ffi.nullptr) : $ptr.ref = _objc_msgSend_18r320v(object$.ref.pointer, _sel_sizeWithAttributes_, attrs?.ref.pointer ?? ffi.nullptr);
final $finalizable = $ptr.cast<ffi.Uint8>().asTypedList(
ffi.sizeOf<objc.CGSize>(), finalizer: pkg_ffi.calloc.nativeFree);
return ffi.Struct.create<objc.CGSize>(
$finalizable);
}