LexicalDocument constructor
const
LexicalDocument({
- required LexicalEditor editor,
- required LexicalTheme theme,
- Key? key,
- Map<
String, DecoratorBuilder> decoratorBuilders = const {}, - EdgeInsetsGeometry padding = EdgeInsets.zero,
- bool scrollable = true,
- ScrollController? scrollController,
- TextDirection? textDirection,
- TextScaler? textScaler,
- LexicalInteraction? interaction,
- BlockRegistry? registry,
- LexicalRenderStats? stats,
Renders editor's document with theme.
Implementation
const LexicalDocument({
required this.editor,
required this.theme,
super.key,
this.decoratorBuilders = const {},
this.padding = EdgeInsets.zero,
this.scrollable = true,
this.scrollController,
this.textDirection,
this.textScaler,
this.interaction,
this.registry,
this.stats,
});