implement static method

NSIgnoreMisspelledWords implement({
  1. required void ignoreSpelling_(
    1. ObjCObjectBase? sender
    ),
  2. bool $keepIsolateAlive = true,
})

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