SurfaceView constructor

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

Constructs a SurfaceView

Implementation

SurfaceView({
  Key? key,
  required int uid,
  String? channelId,
  renderMode = VideoRenderMode.Hidden,
  mirrorMode = VideoMirrorMode.Auto,
  zOrderOnTop = false,
  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,
      );