formatDocumentCommand function

bool formatDocumentCommand(
  1. dynamic target
)

Command to format the entire document.

Typically bound to Shift+Alt+F.

Implementation

bool formatDocumentCommand(dynamic target) {
  final (state, dispatch) = _extractTarget(target);

  dispatch(state.update([
    TransactionSpec(
      effects: [_formatDocumentEffect.of(null)],
    ),
  ]));

  return true;
}