CloudStorageProvider class abstract
Abstract class defining the interface for cloud storage providers.
- Implementers
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
-
createDirectory(
String path) → Future< void> - Creates a new directory in the cloud storage.
-
deleteFile(
String path) → Future< void> - Deletes a file from the cloud storage.
-
downloadFile(
{required String remotePath, required String localPath}) → Future< String> - Downloads a file from the cloud storage.
-
extractFileIdFromSharableLink(
) → Future< String?> -
generateSharableLink(
String path) → Future< Uri?> -
getFileMetadata(
String path) → Future< CloudFile> - Gets the metadata of a file.
-
listFiles(
{required String path, bool recursive = false}) → Future< List< CloudFile> > - Lists files in a directory.
-
loggedInUserDisplayName(
) → Future< String?> -
logout(
) → Future< bool> - Logout user.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
tokenExpired(
) → Future< bool> - Checks if the suer token is still expired.
-
toString(
) → String -
A string representation of this object.
inherited
-
uploadFile(
{required String localPath, required String remotePath, Map< String, dynamic> ? metadata}) → Future<String> - Uploads a file to the cloud storage.
-
uploadFileById(
{required String localPath, required String fileId, Map< String, dynamic> ? metadata}) → Future<String> - Uploads a file to the cloud storage.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited