GoogleDriveProvider class

Inheritance

Properties

driveApi ↔ DriveApi
getter/setter pair
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
override
getFileMetadata(String path) Future<CloudFile>
Gets the metadata of a file.
override
getSharedFileById({required String fileId, required String localPath}) Future<String>
override
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 Properties

instance GoogleDriveProvider?
no setter

Static Methods

connect({bool forceInteractive = false}) Future<GoogleDriveProvider?>
signOut() Future<void>