RenderEditor constructor

RenderEditor({
  1. List<RenderEditableBox>? children,
  2. required NotusDocument document,
  3. required TextDirection textDirection,
  4. required bool hasFocus,
  5. required TextSelection selection,
  6. required LayerLink startHandleLayerLink,
  7. required LayerLink endHandleLayerLink,
  8. required EdgeInsetsGeometry padding,
  9. TextSelectionChangedHandler? onSelectionChanged,
  10. EdgeInsets floatingCursorAddedMargin = const EdgeInsets.fromLTRB(4, 4, 4, 5),
})

Implementation

RenderEditor({
  List<RenderEditableBox>? children,
  required NotusDocument document,
  required TextDirection textDirection,
  required bool hasFocus,
  required TextSelection selection,
  required LayerLink startHandleLayerLink,
  required LayerLink endHandleLayerLink,
  required EdgeInsetsGeometry padding,
  TextSelectionChangedHandler? onSelectionChanged,
  EdgeInsets floatingCursorAddedMargin =
      const EdgeInsets.fromLTRB(4, 4, 4, 5),
})  : _document = document,
      _hasFocus = hasFocus,
      _selection = selection,
      _startHandleLayerLink = startHandleLayerLink,
      _endHandleLayerLink = endHandleLayerLink,
      onSelectionChanged = onSelectionChanged,
      super(
        children: children,
        node: document.root,
        textDirection: textDirection,
        padding: padding,
      );