SingleImagePicker constructor
SingleImagePicker({
- Key? key,
- required Widget child(
- BuildContext context,
- Function upload
- dynamic defaultImage,
- Function? onError,
- double height = 70,
- double width = 70,
- Widget? loading,
- ApiRequest? apiUploadImage,
- required dynamic setImageUrlFromResponse(
- dynamic response
- int? imageQuality = 80,
- String imageSource = "gallery",
- String cameraDevice = "rear",
- bool canUpdate = true,
- BorderRadius? borderRadius,
- double? maxSize,
- List<
String> ? allowedMimeTypes,
Implementation
SingleImagePicker(
{super.key,
required this.child,
this.defaultImage,
this.onError,
this.height = 70,
this.width = 70,
this.loading,
this.apiUploadImage,
required this.setImageUrlFromResponse,
this.imageQuality = 80,
this.imageSource = "gallery", // camera, gallery
this.cameraDevice = "rear", // rear, front
this.canUpdate = true,
this.borderRadius,
this.maxSize,
this.allowedMimeTypes})
: style = "default";