QuillDeltaToHtmlConverter class
Converts Quill's Delta format to HTML (insert ops only) with properly nested lists. It has full support for Quill operations - including images, videos, formulas, tables, and mentions. Conversion can be performed in vanilla Dart (i.e., server-side or CLI) or in Flutter.
This is a complete port of the popular quill-delta-to-html Typescript/Javascript package to Dart.
This converter can convert to HTML for a number of purposes, not the least of which is for generating HTML-based emails. It makes a great pairing with Flutter Quill.
Documentation can be found here.
Constructors
-
QuillDeltaToHtmlConverter(List<
Map< _rawDeltaOps, [ConverterOptions? options])String, dynamic> >
Properties
- afterRender ← (String? Function(GroupType groupType, String htmlString)?)
-
no getter
- beforeRender ← (String? Function(GroupType groupType, TDataGroup data)?)
-
no getter
- hashCode → int
-
The hash code for this object.
no setterinherited
- renderCustomWith ← (String Function(DeltaInsertOp customOp, DeltaInsertOp? contextOp)?)
-
no getter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
convert(
) → String - Convert the Delta ops provided at construction to an HTML string.
-
getGroupedOps(
) → List< TDataGroup> -
getListTag(
DeltaInsertOp op) → String -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
renderBlock(
DeltaInsertOp bop, List< DeltaInsertOp> ops) → String -
renderInlines(
List< DeltaInsertOp> ops, [bool isInlineGroup = true]) → String -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited