writeBytes method

  1. @override
Future<Result<void>> writeBytes(
  1. String path,
  2. List<int> bytes, {
  3. bool createParents = false,
})
override

Writes bytes to path, optionally creating missing parents.

Implementation

@override
Future<Result<void>> writeBytes(
  String path,
  List<int> bytes, {
  bool createParents = false,
}) async {
  if (_writeBytesResults.isNotEmpty) {
    return _writeBytesResults.removeFirst();
  }
  return _write('writeBytes', path, bytes, createParents: createParents);
}