addToBuilder static method

void addToBuilder(
  1. ObjCProtocolBuilder builder, {
  2. required DartNSInteger ruleEditor_numberOfChildrenForCriterion_withRowType_(
    1. NSRuleEditor,
    2. ObjCObjectBase?,
    3. NSRuleEditorRowType
    ),
  3. required ObjCObjectBase ruleEditor_child_forCriterion_withRowType_(
    1. NSRuleEditor,
    2. DartNSInteger,
    3. ObjCObjectBase?,
    4. NSRuleEditorRowType,
    ),
  4. required ObjCObjectBase ruleEditor_displayValueForCriterion_inRow_(
    1. NSRuleEditor,
    2. ObjCObjectBase,
    3. DartNSInteger
    ),
  5. NSDictionary? ruleEditor_predicatePartsForCriterion_withDisplayValue_inRow_(
    1. NSRuleEditor,
    2. ObjCObjectBase,
    3. ObjCObjectBase,
    4. DartNSInteger,
    )?,
  6. void ruleEditorRowsDidChange_(
    1. NSNotification
    )?,
  7. bool $keepIsolateAlive = true,
})

Adds the implementation of the NSRuleEditorDelegate 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(
    NSRuleEditor,
    objc.ObjCObjectBase?,
    NSRuleEditorRowType,
  )
  ruleEditor_numberOfChildrenForCriterion_withRowType_,
  required objc.ObjCObjectBase Function(
    NSRuleEditor,
    DartNSInteger,
    objc.ObjCObjectBase?,
    NSRuleEditorRowType,
  )
  ruleEditor_child_forCriterion_withRowType_,
  required objc.ObjCObjectBase Function(
    NSRuleEditor,
    objc.ObjCObjectBase,
    DartNSInteger,
  )
  ruleEditor_displayValueForCriterion_inRow_,
  objc.NSDictionary? Function(
    NSRuleEditor,
    objc.ObjCObjectBase,
    objc.ObjCObjectBase,
    DartNSInteger,
  )?
  ruleEditor_predicatePartsForCriterion_withDisplayValue_inRow_,
  void Function(objc.NSNotification)? ruleEditorRowsDidChange_,
  bool $keepIsolateAlive = true,
}) {
  NSRuleEditorDelegate.ruleEditor_numberOfChildrenForCriterion_withRowType_
      .implement(
        builder,
        ruleEditor_numberOfChildrenForCriterion_withRowType_,
      );
  NSRuleEditorDelegate.ruleEditor_child_forCriterion_withRowType_.implement(
    builder,
    ruleEditor_child_forCriterion_withRowType_,
  );
  NSRuleEditorDelegate.ruleEditor_displayValueForCriterion_inRow_.implement(
    builder,
    ruleEditor_displayValueForCriterion_inRow_,
  );
  NSRuleEditorDelegate
      .ruleEditor_predicatePartsForCriterion_withDisplayValue_inRow_
      .implement(
        builder,
        ruleEditor_predicatePartsForCriterion_withDisplayValue_inRow_,
      );
  NSRuleEditorDelegate.ruleEditorRowsDidChange_.implement(
    builder,
    ruleEditorRowsDidChange_,
  );
  builder.addProtocol($protocol);
}