PreservingFileWriter class

Writes stackchain-owned files while preserving // <stackchain:custom> code.

Constructors

PreservingFileWriter({required FileWriter writer, Logger? logger})

Properties

backedUp List<String>
final
hashCode int
The hash code for this object.
no setterinherited
logger → Logger
final
merged List<String>
final
preserved List<String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
writer → FileWriter
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
writeIfAbsent(String relativePath, String contents) Future<void>
Never overwrites; creates only when missing.
writeOwned({required String relativePath, required String fullGenerated, String? previousPath}) Future<void>
Writes fullGenerated, merging owned regions when the file already exists.
writeScaffold({required String relativePath, required String fullGenerated}) Future<void>
Merges scaffold tests (generated region) without touching user edits outside markers; refuses blind overwrite of unmarked customized files unless writer.overwrite is true (then backs up).

Operators

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