SingleVideoPicker constructor

SingleVideoPicker({
  1. Key? key,
  2. required Widget child(
    1. BuildContext context,
    2. Function upload
    ),
  3. dynamic defaultVideo,
  4. String? thumbnailUrl,
  5. Future<File?> thumbnailGenerator(
    1. File video
    )?,
  6. VideoPickerOptions options = const VideoPickerOptions(),
  7. String videoSource = "gallery",
  8. String cameraDevice = "rear",
  9. ApiRequest? apiUpload,
  10. required dynamic setVideoUrlFromResponse(
    1. dynamic response
    ),
  11. double height = 70,
  12. double width = 70,
  13. Widget? loading,
  14. Function? onError,
  15. bool canUpdate = true,
  16. BorderRadius? borderRadius,
  17. double? maxSize,
  18. List<String>? allowedMimeTypes,
})

Implementation

SingleVideoPicker({
  super.key,
  required Widget Function(BuildContext context, Function upload) child,
  this.defaultVideo,
  this.thumbnailUrl,
  this.thumbnailGenerator,
  this.options = const VideoPickerOptions(),
  this.videoSource = "gallery",
  this.cameraDevice = "rear",
  this.apiUpload,
  required this.setVideoUrlFromResponse,
  this.height = 70,
  this.width = 70,
  this.loading,
  this.onError,
  this.canUpdate = true,
  this.borderRadius,
  this.maxSize,
  this.allowedMimeTypes,
}) : style = CustomVideoPickerStyle(child);