writeAsText method
Writes content into the file, at the current file cursor offset.
No changes are written to the actual file on disk until the stream has been closed. Changes are typically written to a temporary file instead. This method can also be used to seek to a byte point within the stream and truncate to modify the total bytes the file contains.
Throws a NotAllowedError if PermissionState is not granted.
Implementation
Future<void> writeAsText(String data) {
return _write(data);
}