linesCount property

int linesCount

return string lines count

Implementation

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