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