contextMenuAnchors property

TextSelectionToolbarAnchors contextMenuAnchors

Returns the anchor points for the default context menu.

Copied from EditableTextState.

Implementation

TextSelectionToolbarAnchors get contextMenuAnchors {
  final glyphHeights = _getGlyphHeights();
  final selection = textEditingValue.selection;
  final points = renderEditor.getEndpointsForSelection(selection);
  return TextSelectionToolbarAnchors.fromSelection(
    renderBox: renderEditor,
    startGlyphHeight: glyphHeights.startGlyphHeight,
    endGlyphHeight: glyphHeights.endGlyphHeight,
    selectionEndpoints: points,
  );
}