atLine property

int atLine

The line at which end cursor lies

Implementation

int get atLine => beforeSelectedText.split('\n').length;