RenderEditor constructor
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),
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,
);