PlatformViewSurface constructor Null safety

const PlatformViewSurface(
  1. {Key? key,
  2. required PlatformViewController controller,
  3. required PlatformViewHitTestBehavior hitTestBehavior,
  4. required Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers}
)

Construct a PlatformViewSurface.

The controller must not be null.

Implementation

const PlatformViewSurface({
  super.key,
  required this.controller,
  required this.hitTestBehavior,
  required this.gestureRecognizers,
}) : assert(controller != null),
     assert(hitTestBehavior != null),
     assert(gestureRecognizers != null);