selectAll method

ViewportModel selectAll()

Selects all text in the viewport.

Implementation

ViewportModel selectAll() {
  if (_lines.isEmpty) return this;
  return copyWith(
    selectionStart: (0, 0),
    selectionEnd: (_lines.last.length, _lines.length - 1),
  );
}