AndroidReferenceWidget constructor
AndroidReferenceWidget({
- Key? key,
- required Object instance,
- InstanceManager? instanceManager,
- String viewType = 'github.penguin.reference/AndroidReferenceWidget',
- PlatformViewHitTestBehavior hitTestBehavior = PlatformViewHitTestBehavior.opaque,
- Set<
Factory< gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{},OneSequenceGestureRecognizer> > - TextDirection layoutDirection = TextDirection.rtl,
- PlatformViewCreatedCallback? platformViewCreatedListener,
- 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);