addToBuilderAsBlocking static method

void addToBuilderAsBlocking(
  1. ObjCProtocolBuilder builder, {
  2. required void ignoreSpelling_(
    1. ObjCObjectBase? sender
    ),
  3. bool $keepIsolateAlive = true,
})

Adds the implementation of the NSIgnoreMisspelledWords protocol to an existing objc.ObjCProtocolBuilder. All methods that can be implemented as blocking listeners will be.

Note: You cannot call this method after you have called builder.build.

Implementation

static void addToBuilderAsBlocking(
  objc.ObjCProtocolBuilder builder, {
  required void Function(objc.ObjCObjectBase?) ignoreSpelling_,
  bool $keepIsolateAlive = true,
}) {
  NSIgnoreMisspelledWords.ignoreSpelling_.implementAsBlocking(
    builder,
    ignoreSpelling_,
  );
  builder.addProtocol($protocol);
}