FoldingRange class

A line based folding range. To be valid, start and end line must be bigger than zero and smaller than the number of lines in the document. Invalid ranges will be ignored.

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

FoldingRange(num start, num end, [FoldingRangeKind? kind])
factory

Properties

end num

Available on FoldingRange, provided by the FoldingRange$Typings extension

The zero-based end line of the range to fold. The folded area ends with the line's last character. To be valid, the end must be zero or larger and smaller than the number of lines in the document.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
kind FoldingRangeKind

Available on FoldingRange, provided by the FoldingRange$Typings extension

Describes the {@link FoldingRangeKind Kind} of the folding range such as {@link FoldingRangeKind.Comment Comment} or {@link FoldingRangeKind.Region Region}. The kind is used to categorize folding ranges and used by commands like 'Fold all comments'. See {@link FoldingRangeKind} for an enumeration of all kinds. If not set, the range is originated from a syntax element.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start num

Available on FoldingRange, provided by the FoldingRange$Typings extension

The zero-based start line of the range to fold. The folded area starts after the line's last character. To be valid, the end must be zero or larger and smaller than the number of lines in the document.
getter/setter pair

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