addToBuilder static method

void addToBuilder(
  1. ObjCProtocolBuilder builder, {
  2. required Pointer<ObjCSelector> action(),
  3. required int tag(),
  4. bool $keepIsolateAlive = true,
})

Adds the implementation of the NSValidatedUserInterfaceItem 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 ffi.Pointer<objc.ObjCSelector> Function() action,
  required DartNSInteger Function() tag,
  bool $keepIsolateAlive = true,
}) {
  NSValidatedUserInterfaceItem.action.implement(builder, action);
  NSValidatedUserInterfaceItem.tag.implement(builder, tag);
  builder.addProtocol($protocol);
}