AndroidView constructor
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);