SourceFile class

Represents a source file with its path and content. This class is used to store and manipulate file data when formatting or adding comments via the AI.

Constructors

SourceFile({required String path, required String text})

Properties

hashCode int
The hash code for this object.
no setterinherited
path String
The file path of the source file.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The full text content of the source file.
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