AndroidReferenceWidget constructor

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

Construct a AndroidReferenceWidget widget.

Implementation

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