NSCollectionViewDataSource class interface

NSCollectionViewDataSource

Constructors

NSCollectionViewDataSource.castFrom(ObjCObjectBase other)
Constructs a NSCollectionViewDataSource that points to the same underlying object as other.
NSCollectionViewDataSource.castFromPointer(Pointer<ObjCObject> other, {bool retain = false, bool release = false})
Constructs a NSCollectionViewDataSource that wraps the given raw object pointer.

Properties

hashCode → int
The hash code for this object.
no setterinherited
ref → ObjCObjectRef
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

$protocol → Protocol
Returns the objc.Protocol object for this protocol.
no setter
collectionView_itemForRepresentedObjectAtIndexPath_ → ObjCProtocolMethod<NSCollectionViewItem Function(NSCollectionView, NSIndexPath)>
collectionView:itemForRepresentedObjectAtIndexPath:
final
collectionView_numberOfItemsInSection_ → ObjCProtocolMethod<DartNSInteger Function(NSCollectionView, DartNSInteger)>
collectionView:numberOfItemsInSection:
final
collectionView_viewForSupplementaryElementOfKind_atIndexPath_ → ObjCProtocolMethod<NSView Function(NSCollectionView, DartNSCollectionViewSupplementaryElementKind, NSIndexPath)>
collectionView:viewForSupplementaryElementOfKind:atIndexPath:
final
numberOfSectionsInCollectionView_ → ObjCProtocolMethod<DartNSInteger Function(NSCollectionView)>
numberOfSectionsInCollectionView:
final

Static Methods

addToBuilder(ObjCProtocolBuilder builder, {required DartNSInteger collectionView_numberOfItemsInSection_(NSCollectionView, DartNSInteger), required NSCollectionViewItem collectionView_itemForRepresentedObjectAtIndexPath_(NSCollectionView, NSIndexPath), DartNSInteger numberOfSectionsInCollectionView_(NSCollectionView)?, NSView collectionView_viewForSupplementaryElementOfKind_atIndexPath_(NSCollectionView, DartNSCollectionViewSupplementaryElementKind, NSIndexPath)?, bool $keepIsolateAlive = true}) → void
Adds the implementation of the NSCollectionViewDataSource protocol to an existing objc.ObjCProtocolBuilder.
conformsTo(ObjCObjectBase obj) → bool
Returns whether obj is an instance of NSCollectionViewDataSource.
implement({required DartNSInteger collectionView_numberOfItemsInSection_(NSCollectionView, DartNSInteger), required NSCollectionViewItem collectionView_itemForRepresentedObjectAtIndexPath_(NSCollectionView, NSIndexPath), DartNSInteger numberOfSectionsInCollectionView_(NSCollectionView)?, NSView collectionView_viewForSupplementaryElementOfKind_atIndexPath_(NSCollectionView, DartNSCollectionViewSupplementaryElementKind, NSIndexPath)?, bool $keepIsolateAlive = true}) → NSCollectionViewDataSource
Builds an object that implements the NSCollectionViewDataSource protocol. To implement multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly.