DSStorageProvider class abstract
Storage provider interface for DartStream. This abstract class defines the standard interface for all storage providers.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
deleteFile(
String path) → Future< void> - Delete a file at the specified path
-
dispose(
) → Future< void> - Dispose of the provider and release any resources
-
downloadFile(
String path) → Future< List< int> > - Download a file from the specified path
-
getSignedUrl(
String path, {Duration? expiry}) → Future< String> - Generate a signed URL for the specified path
-
initialize(
Map< String, dynamic> config) → Future<void> - Initialize the storage provider with configuration settings
-
listFiles(
String path, {bool recursive = false}) → Future< List< String> > - List files in a directory (optionally recursive)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
uploadFile(
String path, List< int> data, {Map<String, dynamic> ? metadata}) → Future<String> - Upload a file to the specified path, returns a public URL or identifier
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited