SingleImagePicker.compact constructor

SingleImagePicker.compact({
  1. Key? key,
  2. dynamic defaultImage,
  3. double height = 100,
  4. double width = 100,
  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,
})

Compact style The compact style is a compact version of the SingleImagePicker

Implementation

SingleImagePicker.compact(
    {super.key,
    this.defaultImage,
    this.height = 100,
    this.width = 100,
    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 = "compact",
      child = null;