GeneratedFile class
Represents a generated file with its content and metadata.
Used to track files created during the asset generation process, including their type, location, and content.
Constructors
- GeneratedFile({required String path, required String content, required FileType type, String? description})
-
Creates a new GeneratedFile instance.
const
Properties
- content → String
-
The complete content of the generated file.
final
- description → String?
-
Optional description of what this file contains.
final
- directory → String
-
Gets the directory path from the full path.
no setter
- fileName → String
-
Gets the filename from the path.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- isDartFile → bool
-
Checks if this file is a Dart source file.
no setter
- path → String
-
The absolute path where the file will be written.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sizeInBytes → int
-
Gets the file size in bytes.
no setter
- type → FileType
-
The type of file being generated.
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.
override