Skip to content

Commit

Permalink
added docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tranberry committed Feb 25, 2024
1 parent bdd9efe commit 956e793
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/write_file.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import 'dart:io';

/// Writes the given payload to the file at the specified path.
///
/// * [path]: The path to the file.
/// * [payload]: The content to be written to the file.
void writeFile(String path, String payload) {
File file = File(path);
file.writeAsStringSync(payload);
Expand Down

0 comments on commit 956e793

Please sign in to comment.