addToBuilder static method

void addToBuilder(
  1. ObjCProtocolBuilder builder, {
  2. required NSProgress progress(),
  3. bool $keepIsolateAlive = true,
})

Adds the implementation of the NSProgressReporting protocol to an existing objc.ObjCProtocolBuilder.

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

Implementation

static void addToBuilder(
  objc.ObjCProtocolBuilder builder, {
  required objc.NSProgress Function() progress,
  bool $keepIsolateAlive = true,
}) {
  NSProgressReporting.progress.implement(builder, progress);
  builder.addProtocol($protocol);
}