implementAsBlocking static method
NSChangeSpelling
implementAsBlocking({
- 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. All
methods that can be implemented as blocking listeners will be.
If $keepIsolateAlive is true, this protocol will keep this isolate
alive until it is garbage collected by both Dart and ObjC.
Implementation
static NSChangeSpelling implementAsBlocking({
required void Function(objc.ObjCObjectBase?) changeSpelling_,
bool $keepIsolateAlive = true,
}) {
final builder = objc.ObjCProtocolBuilder(debugName: 'NSChangeSpelling');
NSChangeSpelling.changeSpelling_.implementAsBlocking(
builder,
changeSpelling_,
);
builder.addProtocol($protocol);
return NSChangeSpelling.castFrom(
builder.build(keepIsolateAlive: $keepIsolateAlive),
);
}