TextureView constructor

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

Constructs the TextureView.

Implementation

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