UiKitReferenceWidget constructor

UiKitReferenceWidget({
  1. Key? key,
  2. required Object instance,
  3. InstanceManager? instanceManager,
  4. String viewType = 'github.penguin.reference/UiKitReferenceWidget',
  5. PlatformViewHitTestBehavior hitTestBehavior = PlatformViewHitTestBehavior.opaque,
  6. Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{},
  7. TextDirection layoutDirection = TextDirection.rtl,
  8. PlatformViewCreatedCallback? platformViewCreatedListener,
})

Construct a UiKitReferenceWidget widget.

Implementation

UiKitReferenceWidget({
  Key? key,
  required this.instance,
  InstanceManager? instanceManager,
  this.viewType = 'github.penguin.reference/UiKitReferenceWidget',
  this.hitTestBehavior = PlatformViewHitTestBehavior.opaque,
  this.gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{},
  this.layoutDirection = TextDirection.rtl,
  this.platformViewCreatedListener,
})  : _instanceManager =
          instanceManager ?? MethodChannelMessenger.instance.instanceManager,
      assert(defaultTargetPlatform == TargetPlatform.iOS),
      super(key: key);