CloudStorageProvider class abstract
- Implementers
Constructors
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
. -
deleteFile(
String path) → Future< void> -
Deletes the file or directory at the specified
path
. -
downloadFile(
{required String remotePath, required String localPath}) → Future< String> -
Downloads a file from a
remotePath
to alocalPath
on the device. -
Downloads a file to
localPath
using ashareToken
. -
Generates a shareable link for the file or directory at the
path
. -
getFileMetadata(
String path) → Future< CloudFile> -
Retrieves metadata for the file or directory at the specified
path
. -
Extracts a share token from a given
shareLink
. -
listFiles(
{required String path, bool recursive = false}) → Future< List< CloudFile> > -
Lists all files and directories at the specified
path
. -
loggedInUserDisplayName(
) → Future< String?> - Retrieves the display name of the currently logged-in user.
-
logout(
) → Future< bool> - Logs out the current user from the cloud service.
-
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.
-
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 aremotePath
in the cloud. -
Uploads a file from
localPath
using ashareToken
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited