unfoldAll method

void unfoldAll()

Unfolds all folded regions in the document.

All collapsed fold ranges will be expanded, showing their contents.

Throws StateError if folding is not enabled or editor is not initialized.

Example:

controller.unfoldAll();

Implementation

void unfoldAll() {
  if (_unfoldAllCallback == null) {
    throw StateError('Folding is not enabled or editor is not initialized');
  }
  _unfoldAllCallback!();
}