LexicalDocument constructor

const LexicalDocument({
  1. required LexicalEditor editor,
  2. required LexicalTheme theme,
  3. Key? key,
  4. Map<String, DecoratorBuilder> decoratorBuilders = const {},
  5. EdgeInsetsGeometry padding = EdgeInsets.zero,
  6. bool scrollable = true,
  7. ScrollController? scrollController,
  8. TextDirection? textDirection,
  9. TextScaler? textScaler,
  10. LexicalInteraction? interaction,
  11. BlockRegistry? registry,
  12. 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,
});