CloudStorageProvider class abstract

Abstract class defining the interface for cloud storage providers.

Implementers

Constructors

CloudStorageProvider()

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.
getFileMetadata(String path) Future<CloudFile>
Gets the metadata of a file.
getSharedFileById({required String fileId, required String localPath}) Future<String>
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