UiKitView constructor

const UiKitView({
  1. Key? key,
  2. required String viewType,
  3. UiKitViewGestureBlockingPolicy gestureBlockingPolicy = UiKitViewGestureBlockingPolicy.fallbackToPluginDefault,
  4. PlatformViewCreatedCallback? onPlatformViewCreated,
  5. PlatformViewHitTestBehavior hitTestBehavior = PlatformViewHitTestBehavior.opaque,
  6. TextDirection? layoutDirection,
  7. dynamic creationParams,
  8. MessageCodec? creationParamsCodec,
  9. Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
})

Creates a widget that embeds an iOS view.

If creationParams is not null then creationParamsCodec must not be null.

Implementation

const UiKitView({
  super.key,
  required super.viewType,
  this.gestureBlockingPolicy = UiKitViewGestureBlockingPolicy.fallbackToPluginDefault,
  super.onPlatformViewCreated,
  super.hitTestBehavior = PlatformViewHitTestBehavior.opaque,
  super.layoutDirection,
  super.creationParams,
  super.creationParamsCodec,
  super.gestureRecognizers,
}) : assert(creationParams == null || creationParamsCodec != null);