From 956e7932f5c638cda1a8be94e7610de7f5354813 Mon Sep 17 00:00:00 2001 From: TRBRY Date: Sun, 25 Feb 2024 18:37:06 +0100 Subject: [PATCH] added docs --- lib/write_file.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/write_file.dart b/lib/write_file.dart index d1396d7..867160d 100644 --- a/lib/write_file.dart +++ b/lib/write_file.dart @@ -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);