addToBuilder static method

void addToBuilder(
  1. ObjCProtocolBuilder builder, {
  2. NSRect selectionAnchorRect()?,
  3. bool $keepIsolateAlive = true,
})

Adds the implementation of the NSViewContentSelectionInfo 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, {
  NSRect Function()? selectionAnchorRect,
  bool $keepIsolateAlive = true,
}) {
  NSViewContentSelectionInfo.selectionAnchorRect.implement(
    builder,
    selectionAnchorRect,
  );
  builder.addProtocol($protocol);
}