addToBuilder static method

void addToBuilder(
  1. ObjCProtocolBuilder builder, {
  2. DartNSInteger numberOfItemsInComboBox_(
    1. NSComboBox
    )?,
  3. ObjCObjectBase? comboBox_objectValueForItemAtIndex_(
    1. NSComboBox,
    2. DartNSInteger
    )?,
  4. DartNSUInteger comboBox_indexOfItemWithStringValue_(
    1. NSComboBox,
    2. NSString
    )?,
  5. NSString? comboBox_completedString_(
    1. NSComboBox,
    2. NSString
    )?,
  6. 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);
}