SurfaceView constructor

const SurfaceView({
  1. Key? key,
  2. required int uid,
  3. required String channelId,
  4. VideoRenderMode renderMode = VideoRenderMode.Hidden,
  5. VideoMirrorMode mirrorMode = VideoMirrorMode.Auto,
  6. bool zOrderOnTop = false,
  7. bool zOrderMediaOverlay = false,
  8. PlatformViewCreatedCallback? onPlatformViewCreated,
  9. Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
})

Constructs the SurfaceView.

Implementation

const SurfaceView({
  Key? key,
  required int uid,
  required String channelId,
  VideoRenderMode renderMode = VideoRenderMode.Hidden,
  VideoMirrorMode mirrorMode = VideoMirrorMode.Auto,
  bool zOrderOnTop = false,
  bool zOrderMediaOverlay = false,
  PlatformViewCreatedCallback? onPlatformViewCreated,
  Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
})  : assert(uid != 0),
      super(
        key: key,
        uid: uid,
        channelId: channelId,
        renderMode: renderMode,
        mirrorMode: mirrorMode,
        zOrderOnTop: zOrderOnTop,
        zOrderMediaOverlay: zOrderMediaOverlay,
        onPlatformViewCreated: onPlatformViewCreated,
        gestureRecognizers: gestureRecognizers,
      );