PlatformViewLayer constructor

PlatformViewLayer({@required Rect rect, @required int viewId })

Creates a platform view layer.

The rect and viewId parameters must not be null.

Implementation

PlatformViewLayer({
  @required this.rect,
  @required this.viewId,
}): assert(rect != null), assert(viewId != null);