addToBuilder static method

void addToBuilder(
  1. ObjCProtocolBuilder builder, {
  2. required NSArray localizedSummaryItems(),
  3. NSSet keyPathsForValuesAffectingPreview()?,
  4. bool $keepIsolateAlive = true,
})

Adds the implementation of the NSPrintPanelAccessorizing 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 objc.NSArray Function() localizedSummaryItems,
  objc.NSSet Function()? keyPathsForValuesAffectingPreview,
  bool $keepIsolateAlive = true,
}) {
  NSPrintPanelAccessorizing.localizedSummaryItems.implement(
    builder,
    localizedSummaryItems,
  );
  NSPrintPanelAccessorizing.keyPathsForValuesAffectingPreview.implement(
    builder,
    keyPathsForValuesAffectingPreview,
  );
  builder.addProtocol($protocol);
}