SingleVideoPicker.simple constructor
SingleVideoPicker.simple({
- Key? key,
- dynamic defaultVideo,
- String? thumbnailUrl,
- Future<
File?> thumbnailGenerator(- File video
- VideoPickerOptions options = const VideoPickerOptions(),
- String videoSource = "gallery",
- String cameraDevice = "rear",
- ApiRequest? apiUpload,
- required dynamic setVideoUrlFromResponse(
- dynamic response
- double height = 70,
- double width = 70,
- Widget? loading,
- Function? onError,
- bool canUpdate = true,
- BorderRadius? borderRadius,
- double? maxSize,
- List<
String> ? allowedMimeTypes,
Implementation
SingleVideoPicker.simple({
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 = 70,
this.width = 70,
this.loading,
this.onError,
this.canUpdate = true,
this.borderRadius,
this.maxSize,
this.allowedMimeTypes,
}) : style = const SimpleVideoPickerStyle();