overwriteFile function

void overwriteFile(
  1. String filePath,
  2. String fileData
)

Implementation

void overwriteFile(String filePath, String fileData) {
  final File fileObj = File(filePath);
  fileObj.writeAsString(fileData);
}