addToBuilder static method

void addToBuilder(
  1. ObjCProtocolBuilder builder, {
  2. bool layer_shouldInheritContentsScale_fromWindow_(
    1. CALayer,
    2. DartCGFloat,
    3. NSWindow
    )?,
  3. bool $keepIsolateAlive = true,
})

Adds the implementation of the NSViewLayerContentScaleDelegate 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, {
  bool Function(CALayer, DartCGFloat, NSWindow)?
  layer_shouldInheritContentsScale_fromWindow_,
  bool $keepIsolateAlive = true,
}) {
  NSViewLayerContentScaleDelegate.layer_shouldInheritContentsScale_fromWindow_
      .implement(builder, layer_shouldInheritContentsScale_fromWindow_);
  builder.addProtocol($protocol);
}