countLines property

int get countLines

Gets the number of lines in the text.

Implementation

int get countLines => text.splitLines.length;