export method
export the runtime widget to json
Implementation
@override
Map<String, dynamic> export(Widget? widget, BuildContext? buildContext) {
var realWidget = widget as DropCapText;
var dropCapPadding = realWidget.dropCapPadding;
return <String, dynamic>{
"type": widgetName,
"data": realWidget.data,
"selectable": realWidget.selectable,
"mode": exportDropCapMod(realWidget.mode),
"style": exportTextStyle(realWidget.style),
"dropCapStyle": exportTextStyle(realWidget.dropCapStyle),
"textAlign": exportTextAlign(realWidget.textAlign),
"dropCap": exportDropCap(realWidget.dropCap, buildContext),
"dropCapPadding": dropCapPadding != null
? "${dropCapPadding.left},${dropCapPadding.top},${dropCapPadding.right},${dropCapPadding.bottom}"
: null,
"dropCapChars": realWidget.dropCapChars,
"forceNoDescent": realWidget.forceNoDescent,
"parseInlineMarkdown": realWidget.parseInlineMarkdown != null
? realWidget.parseInlineMarkdown
: false,
"textDirection": exportTextDirection(realWidget.textDirection),
"overflow": exportTextOverflow(realWidget.overflow),
"maxLines": realWidget.maxLines,
"dropCapPosition": realWidget.dropCapPosition != null
? exportDropCapPosition(realWidget.dropCapPosition)
: null
};
}