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