ICloudService<FILE extends CloudFile, FOLDER extends CloudFolder> class abstract

Inheritance
Implementers

Constructors

ICloudService()

Properties

authenticationTokens → AuthenticationTokens?
no setter
displayName → String?
no setter
email → String?
Email address used for login
no setter
hashCode → int
A hash code for the type which is compatible with operator==.
no setterinherited
isSignedIn → bool
Whether the client has an active session running with this service.
no setter
photoUrl → String?
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

authenticate() → Future<bool>
Authenticates the client and establishes a session to securely exchange files.
authorize() → Future<bool>
Requests permissions/scopes This method is invoked whenever there is insufficient permission and should
deleteFile({required FILE file}) → Future<bool>
Delete a file
deleteFolder({required FOLDER folder}) → Future<bool>
Delete a folder
doesFileExist({required FILE file, bool ignoreTrashedFiles = true}) → Future<bool>
Check if file exists in cloud.
downloadFile({required FILE file, void onBytesDownloaded(Uint8List bytes)?}) → Future<FILE>
Download a file
downloadFolder({required FOLDER folder}) → Future<List<FILE>>
Download the contents of a folder
getAllFiles({FOLDER? folder, bool ignoreTrashedFiles = true}) → Future<List<FILE>>
List all files or those of a folder if not null
getAllFolders({FOLDER? folder, bool ignoreTrashedFiles = true}) → Future<List<FOLDER>>
List all folders in the storage vendor. If optionally a folder is passed as parameter, then all folders in that folder will be returned.
getFoldersByName(String name, {bool ignoreTrashedFiles = true}) → Future<List<FOLDER>>
Get a CloudFolder by name.
logout() → Future<bool>
Logs the client out and ends the session.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
Returns a string which represents the underlying type.
inherited
uploadFile({required FILE file, bool overwrite = false, FOLDER? parent}) → Future<FILE>
Create or update a file This method is meant to be idempotent but must not lead to data loss when overwrite is false.
uploadFolder({required String name, FOLDER? parent}) → Future<FOLDER>
Create or update a folder This method is meant to be idempotent.

Operators

operator ==(Object other) → bool
Whether other is a Type instance representing an equivalent type.
inherited

Static Methods

initialize() → Future<void>
Used to initialize this service asynchronously.