killToEnd method

void killToEnd()

Deletes to the end of the line, or the line break when already there.

Implementation

void killToEnd() {
  final end = _lineEnd(_cursor);
  _chars.removeRange(_cursor, end == _cursor && end < _chars.length ? end + 1 : end);
}