selectAll function

bool selectAll(
  1. StateCommandTarget target
)

Select the entire document.

Implementation

bool selectAll(StateCommandTarget target) {
  target.dispatch(target.state.update([
    TransactionSpec(
      selection: EditorSelection.single(0, target.state.doc.length),
      userEvent: 'select',
    ),
  ]));
  return true;
}