newFileWithBytes method

File newFileWithBytes(
  1. String path,
  2. List<int> bytes
)

Implementation

File newFileWithBytes(String path, List<int> bytes) {
  _ensureAbsoluteAndNormalized(path);
  bytes = bytes is Uint8List ? bytes : Uint8List.fromList(bytes);

  return _setFileContent(path, bytes);
}