embeds/video/video
library
Typedefs
-
OnRequestPickVideo
= Future<String?> Function(BuildContext context, ImagePickerService imagePickerService)
-
When request picking an video, for example when the video button toolbar
clicked, it should be null in case the user didn't choose any video or
any other reasons, and it should be the video file path as string that is
exists in case the user picked the video successfully
-
OnVideoInsertCallback
= Future<void> Function(String video, QuillController controller)
-
A callback will called when inserting a video in the editor
it have the logic that will insert the video block using the controller
-
OnVideoInsertedCallback
= Future<void> Function(String video)
-
When a new video picked this callback will called and you might want to
do some logic depending on your use case