TextDocument class
Represents a text document, such as a source file. Text documents have {@link TextLinelines} and knowledge about an underlying resource like a file.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
- @anonymous
Constructors
- TextDocument({Uri? uri, String? fileName, bool? isUntitled, String? languageId, num? version, bool? isDirty, bool? isClosed, EndOfLine? eol, num? lineCount, Future save()?, num offsetAt(Position)?, Position positionAt(num)?, String getText([Range?])?, Range? getWordRangeAtPosition(Position, [RegExp?])?, Range validateRange(Range)?, Position validatePosition(Position)?})
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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