Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Li <[email protected]>
Signed-off-by: shehab mohame <[email protected]>
  • Loading branch information
shehabmohamed0 and AlexV525 authored Dec 16, 2024
1 parent 9a9ee71 commit 27bb332
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions dio/lib/src/file_access_mode.dart
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
/// {@template dio.FileAccessMode}
/// The file access mode when downloading the file.
/// - [FileAccessMode.write]: Mode for opening a file for reading and writing.
/// The file is overwritten if it already exists. The file is created if it
/// does not already exist
/// - [FileAccessMode.append]: Mode for opening a file for reading and writing
/// to the end of it. The file is created if it does not already exist.
/// {@template dio.options.FileAccessMode}
/// The file access mode when downloading a file, corresponds to a subset of
/// dart:io::[FileMode].
/// {@endtemplate}
enum FileAccessMode {
/// Mode for opening a file for reading and writing. The file is overwritten
/// if it already exists. The file is created if it does not already exist.
write,

/// Mode for opening a file for reading and writing to the end of it.
/// The file is created if it does not already exist.
append,
}

Expand Down

0 comments on commit 27bb332

Please sign in to comment.