write method

String write(
  1. String filename,
  2. List<int> bytes
)

Write binary data to file, return the path.

Implementation

String write(String filename, List<int> bytes) {
  final f = File(join(_root.path, filename));
  f.writeAsBytesSync(bytes);
  return f.path;
}