implement static method

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

Builds an object that implements the MLNMapViewDelegate 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 MLNMapViewDelegate implement({bool $keepIsolateAlive = true}) {
  final builder = objc.ObjCProtocolBuilder(debugName: 'MLNMapViewDelegate');

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