ImageEditor constructor

const ImageEditor({
  1. Key? key,
  2. dynamic onSave(
    1. File savedImage
    )?,
  3. dynamic onError(
    1. String error
    )?,
  4. File? baseImage,
  5. String? baseImageUrl,
  6. List<String>? networkImages,
  7. EditorConfig? config,
  8. bool showGallery = true,
  9. bool showCamera = true,
  10. bool showNetwork = true,
})

Implementation

const ImageEditor({
  super.key,
  this.onSave, // Optional: Callback when image is saved
  this.onError, // Optional: Callback when error occurs
  this.baseImage, // Optional: Local file to start with
  this.baseImageUrl, // Optional: Network URL for background
  this.networkImages, // Optional: List of network image URLs for overlays
  this.config, // Optional: Custom appearance configuration
  this.showGallery = true, // Optional: Show gallery button (default: true)
  this.showCamera = true, // Optional: Show camera button (default: true)
  this.showNetwork = true, // Optional: Show network button (default: true)
});