Skip to content

Commit 956e793

Browse files
committed
added docs
1 parent bdd9efe commit 956e793

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/write_file.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import 'dart:io';
22

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.
37
void writeFile(String path, String payload) {
48
File file = File(path);
59
file.writeAsStringSync(payload);

0 commit comments

Comments
 (0)