addToBuilderAsBlocking static method

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

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