File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/powersync_core/lib/src/attachments Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ abstract interface class LocalStorage {
30
30
/// Retrieves binary data stream from storage at the specified file path
31
31
///
32
32
/// [filePath] - Path of the file to read
33
- /// [mediaType] - Optional MIME type of the data
33
+ ///
34
34
/// Returns a stream of binary data
35
- Stream <Uint8List > readFile (String filePath, { String ? mediaType} );
35
+ Stream <Uint8List > readFile (String filePath);
36
36
37
37
/// Deletes a file at the specified path
38
38
///
@@ -79,7 +79,7 @@ final class _InMemoryStorage implements LocalStorage {
79
79
Future <void > initialize () async {}
80
80
81
81
@override
82
- Stream <Uint8List > readFile (String filePath, { String ? mediaType} ) {
82
+ Stream <Uint8List > readFile (String filePath) {
83
83
return switch (content[_keyForPath (filePath)]) {
84
84
null =>
85
85
Stream .error ('file at $filePath does not exist in in-memory storage' ),
You can’t perform that action at this time.
0 commit comments