Code class
Constructors
Properties
-
foldableBlocks
→ List<
FoldableBlock> -
final
-
foldedBlocks
→ Set<
FoldableBlock> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
final
-
final
- highlighted → Result?
-
final
-
invalidBlocks
→ List<
InvalidFoldableBlock> -
final
- lines → CodeLines
-
final
-
namedSections
→ Map<
String, NamedSection> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
final
- visibleHighlighted → Result?
-
final
-
visibleSectionNames
→ Set<
String> -
final
- visibleText → String
-
final
Methods
-
foldableBlockToHiddenRange(
FoldableBlock block) → HiddenRange -
foldedAs(
Code oldCode) → Code -
Folds this code at the same blocks as the
oldCode
is. -
foldedAt(
int line) → Code -
getEditResult(
TextSelection oldSelection, TextEditingValue visibleAfter) → CodeEditResult - Returns the resulting full text if a given visible text edit is applied.
-
isReadOnlyInLineRange(
TextRange lineRange) → bool - Returns whether any of the lines of this range is read-only.
-
isReadOnlySelected(
TextRange range) → bool - Returns whether the current selection has any read-only part.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unfoldedAt(
int line) → Code
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited