We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdd9efe commit 956e793Copy full SHA for 956e793
lib/write_file.dart
@@ -1,5 +1,9 @@
1
import 'dart:io';
2
3
+/// Writes the given payload to the file at the specified path.
4
+///
5
+/// * [path]: The path to the file.
6
+/// * [payload]: The content to be written to the file.
7
void writeFile(String path, String payload) {
8
File file = File(path);
9
file.writeAsStringSync(payload);
0 commit comments