createDirectoryWithFile function

void createDirectoryWithFile(
  1. String dirPath,
  2. String fileName,
  3. String content
)

Creates dirPath then writes a file named fileName inside it with the given content.

Implementation

void createDirectoryWithFile(String dirPath, String fileName, String content) {
  createDirectory(dirPath);
  createFile('$dirPath/$fileName', content);
}