SingleVideoPicker.compact constructor

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

Implementation

SingleVideoPicker.compact({
  super.key,
  this.defaultVideo,
  this.thumbnailUrl,
  this.thumbnailGenerator,
  this.options = const VideoPickerOptions(),
  this.videoSource = "gallery",
  this.cameraDevice = "rear",
  this.apiUpload,
  required this.setVideoUrlFromResponse,
  this.height = 100,
  this.width = 100,
  this.loading,
  this.onError,
  this.canUpdate = true,
  this.borderRadius,
  this.maxSize,
  this.allowedMimeTypes,
}) : style = const CompactVideoPickerStyle();