GeneratedFile class

A generated file with path and content.

Replaces the old TemplateFile with a cleaner, immutable value type.

Constructors

GeneratedFile({required String path, required String content, bool overwrite = true})
const

Properties

content String
The full file content.
final
hashCode int
The hash code for this object.
no setterinherited
overwrite bool
Whether to overwrite if the file already exists.
final
path String
Relative path from the project root (e.g., 'lib/core/api_client.dart').
final
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.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited