onImageUpload property

void Function(FileUpload)? onImageUpload
getter/setter pair

Called whenever an image is inserted via upload. The function passes the FileUpload class, containing the filename, size, MIME type, base64 data, and last modified information so you can upload it into your server.

Note: Setting this function overrides the default summernote upload image insertion handler (base64 handler)! This means you must manually insert the image using controller.insertNetworkImage (for uploaded images) or controller.insertHtml (for base64 data) in your callback function, otherwise nothing will be inserted into the editor!

Implementation

void Function(FileUpload)? onImageUpload;