addToBuilder static method

void addToBuilder(
  1. ObjCProtocolBuilder builder, {
  2. ObjCObjectBase? initWithPasteboardPropertyList_ofType_(
    1. ObjCObjectBase,
    2. DartNSPasteboardType
    )?,
  3. bool $keepIsolateAlive = true,
})

Adds the implementation of the NSPasteboardReading 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, {
  objc.ObjCObjectBase? Function(objc.ObjCObjectBase, DartNSPasteboardType)?
  initWithPasteboardPropertyList_ofType_,
  bool $keepIsolateAlive = true,
}) {
  NSPasteboardReading.initWithPasteboardPropertyList_ofType_.implement(
    builder,
    initWithPasteboardPropertyList_ofType_,
  );
  builder.addProtocol($protocol);
}