PlatformViewLayer constructor Null safety

PlatformViewLayer(
  1. {required Rect rect,
  2. 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);