getSelectedText method
Extracts the selected text from rendered content lines.
lines should be the full content lines (not just visible), in order.
Selection coordinates are in content space.
Implementation
String getSelectedText(List<String> lines) {
return extractSelectedText(
lines,
selectionStart: _selectionStart,
selectionEnd: _selectionEnd,
);
}