implement static method

NSAlignmentFeedbackToken implement({
  1. bool $keepIsolateAlive = true,
})

Builds an object that implements the NSAlignmentFeedbackToken protocol. To implement multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly.

If $keepIsolateAlive is true, this protocol will keep this isolate alive until it is garbage collected by both Dart and ObjC.

Implementation

static NSAlignmentFeedbackToken implement({bool $keepIsolateAlive = true}) {
  final builder = objc.ObjCProtocolBuilder(
    debugName: 'NSAlignmentFeedbackToken',
  );

  builder.addProtocol($protocol);
  return NSAlignmentFeedbackToken.castFrom(
    builder.build(keepIsolateAlive: $keepIsolateAlive),
  );
}