OnImageInsertCallback typedef

OnImageInsertCallback = Future<void> Function(String image, QuillController controller)

A callback will called when inserting a image in the editor it have the logic that will insert the image block using the controller

Implementation

typedef OnImageInsertCallback = Future<void> Function(
  String image,
  QuillController controller,
);