SurfaceView constructor

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

Constructs a SurfaceView

Implementation

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