baseColumn property
int
baseColumn
The column index at which the selection (base) begins.
Implementation
int get baseColumn {
int _base = selection.baseOffset;
String precursorText = text.substring(0, _base);
return (_base - precursorText.lastIndexOf('\n'));
}