FileInfo class
Information about a file being processed
Constructors
- FileInfo({required String path, required String relativePath, required int sizeBytes, required DateTime lastModified, required String content, bool wasIgnored = false, String? ignoreReason})
-
const
- FileInfo.ignored({required String path, required String relativePath, required String reason})
-
Create a FileInfo for an ignored file
factory
Properties
- content → String
-
File content (may have comments removed)
final
- contentSize → int
-
Get content size after processing
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- ignoreReason → String?
-
Reason for ignoring (if wasIgnored is true)
final
- lastModified → DateTime
-
Last modification time
final
- path → String
-
Absolute path to the file
final
- relativePath → String
-
Path relative to the source directory
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sizeBytes → int
-
File size in bytes
final
- wasIgnored → bool
-
Whether this file was ignored
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited