Dropbox class
Constructors
- Dropbox()
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
- Authorize using Dropbox app or web browser.
- Authorize using short-lived tokens
- Authorize with AccessToken
- Authorize with Credentials
-
download(
String dropboxpath, String filepath, [DropboxProgressCallback? callback]) → Future - download file from dropboxpath to local file(filepath).
-
getAccessToken(
) → Future< String?> - get Access Token after authorization.
-
getAccountName(
) → Future< String?> - get account name
-
getCredentials(
) → Future< String?> - same for PKCE
-
getCurrentAccount(
{bool forceCredentialsUse = false}) → Future< AccountInfo?> - get current account information.
-
getTemporaryLink(
String path) → Future< String?> - get temporary link url for file
-
getThumbnailBase64String(
String path) → Future< String?> - get base64 string of thumbnail for image file
-
init(
String clientId, String key, String secret) → Future< bool> - Initialize dropbox library
-
listFolder(
String path) → Future - get folder/file list for path.
-
unlink(
) → Future< void> - Unlink account (remove authorization).
-
upload(
String filepath, String dropboxpath, [DropboxProgressCallback? callback]) → Future - upload local file in filepath to dropboxpath.