UiKitView constructor

UiKitView({Key key, @required String viewType, PlatformViewCreatedCallback onPlatformViewCreated, PlatformViewHitTestBehavior hitTestBehavior: PlatformViewHitTestBehavior.opaque, TextDirection layoutDirection, dynamic creationParams, MessageCodec creationParamsCodec, Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers })

Creates a widget that embeds an iOS view.

The viewType and hitTestBehavior parameters must not be null. If creationParams is not null then creationParamsCodec must not be null.

Implementation

UiKitView({ // ignore: prefer_const_constructors_in_immutables
  // TODO(aam): Remove lint ignore above once https://dartbug.com/34297 is fixed
  Key key,
  @required this.viewType,
  this.onPlatformViewCreated,
  this.hitTestBehavior = PlatformViewHitTestBehavior.opaque,
  this.layoutDirection,
  this.creationParams,
  this.creationParamsCodec,
  this.gestureRecognizers,
}) : assert(viewType != null),
      assert(hitTestBehavior != null),
      assert(creationParams == null || creationParamsCodec != null),
      super(key: key);