onFolding property

Stream<AnalysisFolding> onFolding

Reports the folding regions associated with a given file. Folding regions can be nested, but will not be overlapping. Nesting occurs when a foldable element, such as a method, is nested inside another foldable element such as a class.

This notification is not subscribed to by default. Clients can subscribe by including the value "FOLDING" in the list of services passed in an analysis.setSubscriptions request.

Implementation

Stream<AnalysisFolding> get onFolding {
  return _listen('analysis.folding', AnalysisFolding.parse);
}