addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- required NSArray writableTypesForPasteboard_(
- NSPasteboard pasteboard
- NSPasteboardWritingOptions writingOptionsForType_pasteboard_()?,
- required ObjCObjectBase? pasteboardPropertyListForType_(
- NSString aClassName
- bool $keepIsolateAlive = true,
Adds the implementation of the NSPasteboardWriting 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(NSPasteboard) writableTypesForPasteboard_,
NSPasteboardWritingOptions Function(DartNSPasteboardType, NSPasteboard)?
writingOptionsForType_pasteboard_,
required objc.ObjCObjectBase? Function(DartNSAnimatablePropertyKey)
pasteboardPropertyListForType_,
bool $keepIsolateAlive = true,
}) {
NSPasteboardWriting.writableTypesForPasteboard_.implement(
builder,
writableTypesForPasteboard_,
);
NSPasteboardWriting.writingOptionsForType_pasteboard_.implement(
builder,
writingOptionsForType_pasteboard_,
);
NSPasteboardWriting.pasteboardPropertyListForType_.implement(
builder,
pasteboardPropertyListForType_,
);
builder.addProtocol($protocol);
}