Thanks to visit codestin.com Credit goes to api.dart.dev
Synchronously closes the file.
Throws a FileSystemException if the operation fails.
void closeSync();