ImagePreview constructor

const ImagePreview({
  1. Key? key,
  2. required String imagePath,
  3. required VoidCallback onRemove,
  4. double size = 80,
  5. double borderRadius = 8,
})

Creates an image preview widget.

Implementation

const ImagePreview({
  super.key,
  required this.imagePath,
  required this.onRemove,
  this.size = 80,
  this.borderRadius = 8,
});