addToBuilderAsBlocking static method

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

Adds the implementation of the NSChangeSpelling 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?) changeSpelling_,
  bool $keepIsolateAlive = true,
}) {
  NSChangeSpelling.changeSpelling_.implementAsBlocking(
    builder,
    changeSpelling_,
  );
  builder.addProtocol($protocol);
}