return UiKitView(
    viewType: viewType,
    layoutDirection: TextDirection.ltr,
    creationParams: creationParams,
    creationParamsCodec: const StandardMessageCodec(),
  );
}

For more information, see the API docs for:
UIKitView.

On the platform side

On the platform side, you use the either Swift or Objective-C:

Swift

Objective-C

Implement the factory and the platform view.
The FLNativeViewFactory creates the platform view,
and the platform view provides a reference to the UIView.
For example, FLNativeView.swift:

import

Flutter

import

UIKit

class

FLNativeViewFactory

NSObject

FlutterPlatformViewFactory

private

var

messenger