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