truncateSync method
Synchronously truncates (or extends) the file to length
bytes.
Throws a FileSystemException if the operation fails.
Implementation
@override
void truncateSync(int length) {
_assertIsOpen();
_assertIsWriteable('truncateSync');
if (length < 0) {
throw ArgumentError.value(length, 'length', 'must be non-negative');
}
throw UnimplementedError('RandomAccessFile.truncateSync');
}