writeContentByPath static method

Future<bool> writeContentByPath({
  1. required String filePath,
  2. required String content,
  3. bool? autoCreate = false,
  4. FileMode mode = FileMode.append,
})

Implementation

static Future<bool> writeContentByPath({
  required String filePath,
  required String content,
  bool? autoCreate = false,
  FileMode mode = FileMode.append
}) async {
  return await writeContentByFile(
    file: File(filePath),
    content: content,
    autoCreate: autoCreate,
    mode: mode
  );
}