writeAsBytesSync method

  1. @override
void writeAsBytesSync(
  1. List<int> bytes
)
override

Synchronously write the given bytes to the file. The new content will replace any existing content.

Throws a FileSystemException if the operation fails.

Implementation

@override
void writeAsBytesSync(List<int> bytes) {
  file.writeAsBytesSync(bytes);
}