void flushSync()

Synchronously flushes the contents of the file to disk.

Throws a FileSystemException if the operation fails.

Source

void flushSync();