addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- DartNSInteger numberOfItemsInComboBoxCell_()?,
- ObjCObjectBase comboBoxCell_objectValueForItemAtIndex_()?,
- DartNSUInteger comboBoxCell_indexOfItemWithStringValue_(
- NSComboBoxCell,
- NSString
- NSString? comboBoxCell_completedString_(
- NSComboBoxCell,
- NSString
- bool $keepIsolateAlive = true,
Adds the implementation of the NSComboBoxCellDataSource 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, {
DartNSInteger Function(NSComboBoxCell)? numberOfItemsInComboBoxCell_,
objc.ObjCObjectBase Function(NSComboBoxCell, DartNSInteger)?
comboBoxCell_objectValueForItemAtIndex_,
DartNSUInteger Function(NSComboBoxCell, objc.NSString)?
comboBoxCell_indexOfItemWithStringValue_,
objc.NSString? Function(NSComboBoxCell, objc.NSString)?
comboBoxCell_completedString_,
bool $keepIsolateAlive = true,
}) {
NSComboBoxCellDataSource.numberOfItemsInComboBoxCell_.implement(
builder,
numberOfItemsInComboBoxCell_,
);
NSComboBoxCellDataSource.comboBoxCell_objectValueForItemAtIndex_.implement(
builder,
comboBoxCell_objectValueForItemAtIndex_,
);
NSComboBoxCellDataSource.comboBoxCell_indexOfItemWithStringValue_.implement(
builder,
comboBoxCell_indexOfItemWithStringValue_,
);
NSComboBoxCellDataSource.comboBoxCell_completedString_.implement(
builder,
comboBoxCell_completedString_,
);
builder.addProtocol($protocol);
}