cursorDocStart function

bool cursorDocStart(
  1. StateCommandTarget target
)

Move the selection to the start of the document.

Implementation

bool cursorDocStart(StateCommandTarget target) {
  target.dispatch(_setSel(target.state, EditorSelection.single(0)));
  return true;
}