atColumn property
int
atColumn
The column at which the end cursor is at.
Implementation
int get atColumn {
int _extent = selection.extentOffset;
String precursorText = text.substring(0, _extent);
return (_extent - precursorText.lastIndexOf('\n'));
}