addFile method

void addFile(
  1. String localPath,
  2. String content
)

Adds a file to PubPackageResolutionTest.resourceProvider.

The file is added at localPath relative to the package path of this PackageBuilder, with content.

Implementation

void addFile(String localPath, String content) {
  _test.newFile('$_packagePath/$localPath', content);
}