SingleImagePicker.simple constructor
SingleImagePicker.simple({
- Key? key,
- dynamic defaultImage,
- double height = 70,
- double width = 70,
- Function? onError,
- 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,
Simple style The simple style is a simple version of the SingleImagePicker
Implementation
SingleImagePicker.simple(
{super.key,
this.defaultImage,
this.height = 70,
this.width = 70,
this.onError,
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 = "simple",
child = null;