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 at the specified path.
override
deleteFile(String path) Future<void>
Deletes the file or directory at the specified path.
override
downloadFile({required String remotePath, required String localPath}) Future<String>
Downloads a file from a remotePath to a localPath on the device.
override
downloadFileByShareToken({required String shareToken, required String localPath}) Future<String>
Downloads a file to localPath using a shareToken.
override
Generates a shareable link for the file or directory at the path.
override
getFileMetadata(String path) Future<CloudFile>
Retrieves metadata for the file or directory at the specified path.
override
Extracts a share token from a given shareLink.
override
listFiles({String path = '', bool recursive = false}) Future<List<CloudFile>>
Lists all files and directories at the specified path.
override
loggedInUserDisplayName() Future<String?>
Retrieves the display name of the currently logged-in user.
override
logout() Future<bool>
Logs out the current user from dropbox.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
tokenExpired() Future<bool>
Checks if the current user's authentication token is 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 from a localPath to a remotePath in the dropbox.
override
uploadFileByShareToken({required String localPath, required String shareToken, Map<String, dynamic>? metadata}) Future<String>
Uploads a file from localPath using a shareToken.
override

Operators

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

Static Methods

connect({required String appKey, required String appSecret, required String redirectUri, bool forceInteractive = false}) Future<DropboxProvider?>
Creates and authenticates a DropboxProvider instance. Handles both silent sign-in and interactive user login.