selectAll method
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),
);
}
Selects all text in the viewport.
ViewportModel selectAll() {
if (_lines.isEmpty) return this;
return copyWith(
selectionStart: (0, 0),
selectionEnd: (_lines.last.length, _lines.length - 1),
);
}