implement static method
NSPrintPanelAccessorizing
implement({
- required NSArray localizedSummaryItems(),
- NSSet keyPathsForValuesAffectingPreview()?,
- bool $keepIsolateAlive = true,
Builds an object that implements the NSPrintPanelAccessorizing protocol. To implement
multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly.
If $keepIsolateAlive is true, this protocol will keep this isolate
alive until it is garbage collected by both Dart and ObjC.
Implementation
static NSPrintPanelAccessorizing implement({
required objc.NSArray Function() localizedSummaryItems,
objc.NSSet Function()? keyPathsForValuesAffectingPreview,
bool $keepIsolateAlive = true,
}) {
final builder = objc.ObjCProtocolBuilder(
debugName: 'NSPrintPanelAccessorizing',
);
NSPrintPanelAccessorizing.localizedSummaryItems.implement(
builder,
localizedSummaryItems,
);
NSPrintPanelAccessorizing.keyPathsForValuesAffectingPreview.implement(
builder,
keyPathsForValuesAffectingPreview,
);
builder.addProtocol($protocol);
return NSPrintPanelAccessorizing.castFrom(
builder.build(keepIsolateAlive: $keepIsolateAlive),
);
}