writeAsStringSync method Null safety

void writeAsStringSync(
  1. String content
)

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

Throws a FileSystemException if the operation fails.

Implementation

void writeAsStringSync(String content);