PreservingFileWriter class
Writes stackchain-owned files while preserving // <stackchain:custom> code.
Constructors
- PreservingFileWriter({required FileWriter writer, Logger? logger})
Properties
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 (
generatedregion) without touching user edits outside markers; refuses blind overwrite of unmarked customized files unlesswriter.overwriteis true (then backs up).
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited