addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- required DartNSInteger ruleEditor_numberOfChildrenForCriterion_withRowType_(
- NSRuleEditor,
- ObjCObjectBase?,
- NSRuleEditorRowType
- required ObjCObjectBase ruleEditor_child_forCriterion_withRowType_(
- NSRuleEditor,
- DartNSInteger,
- ObjCObjectBase?,
- NSRuleEditorRowType,
- required ObjCObjectBase ruleEditor_displayValueForCriterion_inRow_(
- NSRuleEditor,
- ObjCObjectBase,
- DartNSInteger
- NSDictionary? ruleEditor_predicatePartsForCriterion_withDisplayValue_inRow_(
- NSRuleEditor,
- ObjCObjectBase,
- ObjCObjectBase,
- DartNSInteger,
- void ruleEditorRowsDidChange_(
- NSNotification
- 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);
}