ImageCaptureField constructor

ImageCaptureField({
  1. Key? key,
  2. ImageCaptureController? controller,
  3. dynamic onImagePathChanged(
    1. String? onChanged
    )?,
  4. dynamic onImageBytesChanged(
    1. Uint8List? bytes
    )?,
  5. double? width,
  6. double? height,
  7. Widget? initialImage,
  8. double? cropAspectRatio,
  9. bool includeCropper = true,
  10. int imageQuality = 100,
  11. double borderRadiusValue = 16,
  12. double bottomRightDistance = 12,
  13. Color iconBackgroundColor = Colors.teal,
  14. IconData iconEdit = Icons.edit,
  15. IconData iconCamera = Icons.camera_alt,
  16. IconData iconGallery = Icons.photo,
})

Implementation

ImageCaptureField({
  Key? key,
  ImageCaptureController? controller,
  this.onImagePathChanged,
  this.onImageBytesChanged,
  this.width,
  this.height,
  this.initialImage,
  // this.onChanged,
  this.cropAspectRatio,
  this.includeCropper = true,
  this.imageQuality = 100,
  this.borderRadiusValue = 16,
  this.bottomRightDistance = 12,
  this.iconBackgroundColor = Colors.teal,
  this.iconEdit = Icons.edit,
  this.iconCamera = Icons.camera_alt,
  this.iconGallery = Icons.photo,
})  : controller = controller ?? ImageCaptureController(),
      super(key: key);