saveToAbsolutePath function

Future<void> saveToAbsolutePath(
  1. String content,
  2. String path
)

Saves content to an absolute path.

Overwrites if the file already exists.

Implementation

Future<void> saveToAbsolutePath(String content, String path) async {
  File file = File(path);
  await file.writeAsString(content);
}