@implementation

FLPlugin

void

registerWithRegistrar

:(

NSObject

FlutterPluginRegistrar

>*

registrar

FLNativeViewFactory

factory

[[

FLNativeViewFactory

alloc

initWithMessenger

registrar

messenger

];

registrar

registerViewFactory

factory

withId

@"<platform-view-type>"

];

@end

For more information, see the API docs for:

FlutterPlatformViewFactory

FlutterPlatformView

PlatformView

Putting it together