void closeSync()

Synchronously closes the file.

Throws a FileSystemException if the operation fails.

Source

void closeSync();