SurfaceView constructor

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

Constructs a SurfaceView

Implementation

SurfaceView({
  Key? key,
  required String? uid,
  String? channelId,
  renderMode = VideoRenderMode.Hidden,
  mirrorMode = VideoMirrorMode.Auto,

  PlatformViewCreatedCallback? onPlatformViewCreated,
  Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
})  : assert(uid != "0"),
      super(
        key: key,
        uid: uid,
        channelId: channelId,
        renderMode: renderMode,
        mirrorMode: mirrorMode,
        onPlatformViewCreated: onPlatformViewCreated,
        gestureRecognizers: gestureRecognizers,
      );