captureValidatedContents method

void captureValidatedContents(
  1. String path,
  2. String? contents
)

Records contents already read by validation without opening the file again. null records that the optional path did not exist.

Implementation

void captureValidatedContents(String path, String? contents) {
  if (contains(path)) return;
  _originals[path] = contents;
}