initialLayoutAttributesForAppearingSupplementaryElementOfKind method

NSCollectionViewLayoutAttributes? initialLayoutAttributesForAppearingSupplementaryElementOfKind(
  1. DartNSCollectionViewSupplementaryElementKind elementKind, {
  2. required NSIndexPath atIndexPath,
})

initialLayoutAttributesForAppearingSupplementaryElementOfKind:atIndexPath:

Implementation

NSCollectionViewLayoutAttributes?
initialLayoutAttributesForAppearingSupplementaryElementOfKind(
  DartNSCollectionViewSupplementaryElementKind elementKind, {
  required NSIndexPath atIndexPath,
}) {
  objc.checkOsVersionInternal(
    'NSCollectionViewLayout.initialLayoutAttributesForAppearingSupplementaryElementOfKind:atIndexPath:',
    iOS: (true, null),
  );
  final _ret = _objc_msgSend_15qeuct(
    this.ref.pointer,
    _sel_initialLayoutAttributesForAppearingSupplementaryElementOfKind_atIndexPath_,
    elementKind.ref.pointer,
    atIndexPath.ref.pointer,
  );
  return _ret.address == 0
      ? null
      : NSCollectionViewLayoutAttributes.castFromPointer(
          _ret,
          retain: true,
          release: true,
        );
}