addToBuilder static method

void addToBuilder(
  1. ObjCProtocolBuilder builder, {
  2. void cache_willEvictObject_(
    1. NSCache,
    2. ObjCObjectBase
    )?,
  3. bool $keepIsolateAlive = true,
})

Adds the implementation of the NSCacheDelegate 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, {
  void Function(NSCache, objc.ObjCObjectBase)? cache_willEvictObject_,
  bool $keepIsolateAlive = true,
}) {
  NSCacheDelegate.cache_willEvictObject_.implement(
    builder,
    cache_willEvictObject_,
  );
  builder.addProtocol($protocol);
}