OptionalblockDetermines whether this is a block widgets, which will be drawn between lines, or an inline widget (the default) which is drawn between the surrounding text.
Note that block-level decorations should not have vertical
margins, and if you dynamically change their height, you should
make sure to call
requestMeasure, so that the
editor can update its information about its vertical layout.
OptionalinlineBy default, to avoid unintended mixing of block and inline
widgets, block widgets with a positive side are always drawn
after all inline widgets at that position, and those with a
non-positive side before inline widgets. Setting this option to
true for a block widget will turn this off and cause it to be
rendered between the inline widgets, ordered by side.
OptionalsideWhich side of the given position the widget is on. When this is
positive, the widget will be drawn after the cursor if the
cursor is on the same position. Otherwise, it'll be drawn before
it. When multiple widgets sit at the same position, their side
values will determine their ordering—those with a lower value
come first. Defaults to 0. May not be more than 10000 or less
than -10000.
The type of widget to draw here.
Other properties are allowed.