addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- DartNSInteger numberOfItemsInComboBox_()?,
- ObjCObjectBase? comboBox_objectValueForItemAtIndex_()?,
- DartNSUInteger comboBox_indexOfItemWithStringValue_(
- NSComboBox,
- NSString
- NSString? comboBox_completedString_(
- NSComboBox,
- NSString
- bool $keepIsolateAlive = true,
Adds the implementation of the NSComboBoxDataSource 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(NSComboBox)? numberOfItemsInComboBox_,
objc.ObjCObjectBase? Function(NSComboBox, DartNSInteger)?
comboBox_objectValueForItemAtIndex_,
DartNSUInteger Function(NSComboBox, objc.NSString)?
comboBox_indexOfItemWithStringValue_,
objc.NSString? Function(NSComboBox, objc.NSString)?
comboBox_completedString_,
bool $keepIsolateAlive = true,
}) {
NSComboBoxDataSource.numberOfItemsInComboBox_.implement(
builder,
numberOfItemsInComboBox_,
);
NSComboBoxDataSource.comboBox_objectValueForItemAtIndex_.implement(
builder,
comboBox_objectValueForItemAtIndex_,
);
NSComboBoxDataSource.comboBox_indexOfItemWithStringValue_.implement(
builder,
comboBox_indexOfItemWithStringValue_,
);
NSComboBoxDataSource.comboBox_completedString_.implement(
builder,
comboBox_completedString_,
);
builder.addProtocol($protocol);
}