implement static method
Builds an object that implements the NSAlertDelegate 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 NSAlertDelegate implement({
bool Function(NSAlert)? alertShowHelp_,
bool $keepIsolateAlive = true,
}) {
final builder = objc.ObjCProtocolBuilder(debugName: 'NSAlertDelegate');
NSAlertDelegate.alertShowHelp_.implement(builder, alertShowHelp_);
builder.addProtocol($protocol);
return NSAlertDelegate.castFrom(
builder.build(keepIsolateAlive: $keepIsolateAlive),
);
}