selectAll function
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;
}