sizeForChildContentContainer method

CGSize sizeForChildContentContainer(
  1. UIContentContainer container, {
  2. required CGSize withParentContainerSize,
})

sizeForChildContentContainer:withParentContainerSize:

Implementation

objc.CGSize sizeForChildContentContainer(
  UIContentContainer container, {
  required objc.CGSize withParentContainerSize,
}) {
  objc.checkOsVersionInternal(
    'UIViewController.sizeForChildContentContainer:withParentContainerSize:',
    iOS: (false, (8, 0, 0)),
  );
  final _ptr = pkg_ffi.calloc<objc.CGSize>();
  objc.useMsgSendVariants
      ? _objc_msgSend_xq5db9Stret(
          _ptr,
          this.ref.pointer,
          _sel_sizeForChildContentContainer_withParentContainerSize_,
          container.ref.pointer,
          withParentContainerSize,
        )
      : _ptr.ref = _objc_msgSend_xq5db9(
          this.ref.pointer,
          _sel_sizeForChildContentContainer_withParentContainerSize_,
          container.ref.pointer,
          withParentContainerSize,
        );
  final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
    ffi.sizeOf<objc.CGSize>(),
    finalizer: pkg_ffi.calloc.nativeFree,
  );
  return ffi.Struct.create<objc.CGSize>(_finalizable);
}