QuillEditorImageEmbedConfigurations class

QuillEditorImageEmbedConfigurations for desktop, mobile and other platforms excluding web, it's configurations that is needed for the editor

Annotations

Constructors

QuillEditorImageEmbedConfigurations({ImageEmbedBuilderOnRemovedCallback? onImageRemovedCallback, ImageEmbedBuilderWillRemoveCallback? shouldRemoveImageCallback, ImageEmbedBuilderProviderBuilder? imageProviderBuilder, ImageEmbedBuilderErrorWidgetBuilder? imageErrorWidgetBuilder, void onImageClicked(String imageSource)?})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
imageErrorWidgetBuilder ImageEmbedBuilderErrorWidgetBuilder?
imageErrorWidgetBuilder if you want to show a custom widget based on the exception that happen while loading the image, if it network image or local one, and it will get called on all the images even in the photo preview widget and not just in the quill editor by default the default error from flutter framework will thrown
final
imageProviderBuilder ImageEmbedBuilderProviderBuilder?
imageProviderBuilder if you want to use custom image provider, please pass a value to this property By default we will use NetworkImage provider if the image url/path is using http/https, if not then we will use FileImage provider If you ovveride this make sure to handle the case where if the imageUrl is in the local storage or it does exists in the system file or use the same way we did it
final
onImageClicked → void Function(String imageSource)?
What should happen when the image is pressed?
final
onImageRemovedCallback ImageEmbedBuilderOnRemovedCallback
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldRemoveImageCallback ImageEmbedBuilderWillRemoveCallback?
shouldRemoveImageCallback is a callback function that is invoked when the user attempts to remove an image from the editor. It allows you to control whether the image should be removed based on your custom logic.
final

Methods

copyWith({ImageEmbedBuilderOnRemovedCallback? onImageRemovedCallback, ImageEmbedBuilderWillRemoveCallback? shouldRemoveImageCallback, ImageEmbedBuilderProviderBuilder? imageProviderBuilder, ImageEmbedBuilderErrorWidgetBuilder? imageErrorWidgetBuilder, bool? forceUseMobileOptionMenuForImageClick}) QuillEditorImageEmbedConfigurations
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited