truncateSync method - RandomAccessFile class - dart:io library (original) (raw)

description

truncateSync abstract method

void truncateSync(

  1. int length )

Synchronously truncates (or extends) the file to length bytes.

Throws a FileSystemException if the operation fails.

Implementation

void truncateSync(int length);