createFileWithStringContent static method

Future<File> createFileWithStringContent(
  1. String content,
  2. String path
)

Implementation

static Future<File> createFileWithStringContent(
    String content, String path) async {
  return await File(path).writeAsString(content);
}