SingleImagePicker.simple constructor

SingleImagePicker.simple({
  1. Key? key,
  2. dynamic defaultImage,
  3. double height = 70,
  4. double width = 70,
  5. Function? onError,
  6. Widget? loading,
  7. ApiRequest? apiUploadImage,
  8. required dynamic setImageUrlFromResponse(
    1. dynamic response
    ),
  9. int? imageQuality = 80,
  10. String imageSource = "gallery",
  11. String cameraDevice = "rear",
  12. bool canUpdate = true,
  13. BorderRadius? borderRadius,
  14. double? maxSize,
  15. 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;