embedVideo method

Future embedVideo(
  1. String url
)

embedVideo method is used to embed url of video to the editor

Implementation

Future embedVideo(String url) async {
  String? link = StringUtil.sanitizeVideoUrl(url);
  if (link == null) {
    return;
  }
  return await _editorKey?.currentState?._embedVideo(videoUrl: link);
}