DropboxProvider class

Inheritance

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.
override
deleteFile(String path) Future<void>
Deletes a file from the cloud storage.
override
downloadFile({required String remotePath, required String localPath}) Future<String>
Downloads a file from the cloud storage.
override
override
Generates a sharable link for a FOLDER that allows other users to edit its contents.
override
getFileMetadata(String path) Future<CloudFile>
Gets the metadata of a file.
override
getSharedFileById({required String fileId, required String localPath}) Future<String>
override
joinSharedFolder({required String sharedLinkUrl}) Future<Map<String, String>>
listFiles({required String path, bool recursive = false}) Future<List<CloudFile>>
Lists files in a directory.
override
loggedInUserDisplayName() Future<String?>
override
logout() Future<bool>
Logout user.
override
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.
override
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.
override
uploadFileById({required String localPath, required String fileId, Map<String, dynamic>? metadata}) Future<String>
Uploads a file to the cloud storage.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

connect({required String appKey, required String appSecret, required String redirectUri}) Future<DropboxProvider?>
The primary method to get a connected DropboxProvider instance. It now handles token storage internally.