addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- required DartNSInteger numberOfItemsForScrubber_(),
- required NSScrubberItemView scrubber_viewForItemAtIndex_(),
- bool $keepIsolateAlive = true,
Adds the implementation of the NSScrubberDataSource protocol to an existing
objc.ObjCProtocolBuilder.
Note: You cannot call this method after you have called builder.build.
Implementation
static void addToBuilder(
objc.ObjCProtocolBuilder builder, {
required DartNSInteger Function(NSScrubber) numberOfItemsForScrubber_,
required NSScrubberItemView Function(NSScrubber, DartNSInteger)
scrubber_viewForItemAtIndex_,
bool $keepIsolateAlive = true,
}) {
NSScrubberDataSource.numberOfItemsForScrubber_.implement(
builder,
numberOfItemsForScrubber_,
);
NSScrubberDataSource.scrubber_viewForItemAtIndex_.implement(
builder,
scrubber_viewForItemAtIndex_,
);
builder.addProtocol($protocol);
}