You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Usage/Storage Access Framework.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -223,7 +223,7 @@ Write to a file using raw bytes `Uint8List`.
223
223
224
224
Given the document uri, opens the file in the specified `mode` and writes the `bytes` to it.
225
225
226
-
`mode` represents the mode in which the file will be opened for writing. Use `FileMode.write` for truncating and `FileMode.append` for appending to the file.
226
+
`mode` represents the mode in which the file will be opened for writing. Use `FileMode.write` for truncating (overwrite) and `FileMode.append` for appending to the file.
227
227
228
228
```dart
229
229
final Uri documentUri = ...
@@ -576,7 +576,6 @@ You should provide either `content` or `bytes`, if both `bytes` will be used.
576
576
577
577
`mode` represents the mode in which the file will be opened for writing. Use `FileMode.write` for truncating and `FileMode.append` for appending to the file.
578
578
579
-
580
579
```dart
581
580
final Uri documentUri = ...
582
581
final String fileContent = 'My File Content';
@@ -596,14 +595,14 @@ final bool? success = writeToFile(
596
595
);
597
596
598
597
/// Write to a file using a [Uint8List] as file contents [bytes]
0 commit comments