addToBuilder static method

void addToBuilder(
  1. ObjCProtocolBuilder builder, {
  2. required ObjCObject mutableCopyWithZone_(
    1. Pointer<NSZone>
    ),
  3. bool $keepIsolateAlive = true,
})

Adds the implementation of the NSMutableCopying 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.ObjCObject Function(ffi.Pointer<NSZone>) mutableCopyWithZone_,
  bool $keepIsolateAlive = true,
}) {
  NSMutableCopying$Builder.mutableCopyWithZone_.implement(
    builder,
    mutableCopyWithZone_,
  );
  builder.addProtocol($protocol);
}