convertQuillToHtmlText static method

String convertQuillToHtmlText(
  1. QuillController controller
)

Implementation

static String convertQuillToHtmlText(QuillController controller) {
  final deltaJson = controller.document.toDelta().toJson();
  final converter = QuillDeltaToHtmlConverter(
    List.castFrom(
      deltaJson,
    ),
    ConverterOptions.forEmail(),
  );

  final html = converter.convert();
  return html;
}