FoldingRangeProvider class

The folding range provider interface defines the contract between extensions and Folding in the editor.

Available extensions
Annotations
  • @JS()
  • @staticInterop
  • @anonymous

Constructors

FoldingRangeProvider({Event<void>? onDidChangeFoldingRanges, FutureOr<List<FoldingRange>> provideFoldingRanges(TextDocument, FoldingContext, CancellationToken)?})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
onDidChangeFoldingRanges Event<void>?

Available on FoldingRangeProvider, provided by the FoldingRangeProvider$Typings extension

An optional event to signal that the folding ranges from this provider have changed.
getter/setter pair
provideFoldingRanges FutureOr<List<FoldingRange>> Function(TextDocument, FoldingContext, CancellationToken)

Available on FoldingRangeProvider, provided by the FoldingRangeProvider$Typings extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited