AndroidView constructor

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

Creates a widget that embeds an Android view.

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

Implementation

const AndroidView({
  Key key,
  @required this.viewType,
  this.onPlatformViewCreated,
  this.hitTestBehavior = PlatformViewHitTestBehavior.opaque,
  this.layoutDirection,
  this.gestureRecognizers,
  this.creationParams,
  this.creationParamsCodec,
}) : assert(viewType != null),
     assert(hitTestBehavior != null),
     assert(creationParams == null || creationParamsCodec != null),
     super(key: key);