EditorDocumentSnapshot class final
Serializable editor document state supplied to persistence adapters.
Constructors
-
EditorDocumentSnapshot({required String documentId, required TextDocument document, required int revision, required DateTime savedAt, Map<
String, Object?> metadata = const <String, Object?>{}})
Properties
- document → TextDocument
-
Document content captured for this revision.
final
- documentId → String
-
Stable host-defined identifier, usually a URI or workspace-relative path.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
metadata
→ Map<
String, Object?> -
Adapter-specific serializable metadata.
final
- revision → int
-
Monotonically increasing host revision.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- savedAt → DateTime
-
Time at which the snapshot was created.
final
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