writeAsStringSync method

  1. @override
void writeAsStringSync(
  1. String content
)
override

Synchronously write the given content to the file. The new content will replace any existing content.

Throws a FileSystemException if the operation fails.

Implementation

@override
void writeAsStringSync(String content) {
  file.writeAsStringSync(content);
}