saveFileFromPath static method

Future<bool> saveFileFromPath(
  1. String filePath,
  2. String content
)

This method saves the given content to the file at the given filePath.

Implementation

static Future<bool> saveFileFromPath(String filePath, String content) async {
  File file = File(filePath);
  file.writeAsString(content);
  return true;
}