writeAll abstract method

Future<void> writeAll(
  1. String path,
  2. List<int> bytes
)

Replaces the file atomically: a crash leaves either the old or the new content.

Implementation

Future<void> writeAll(String path, List<int> bytes);