StorageFolderImplement class abstract

Defines the business-level abstraction for interacting with a storage bucket.

The StorageFolderImplement interface represents the contract for managing files within a logical storage container, such as a directory or namespace, regardless of the underlying storage provider.

It centralizes the access points for:

  • upload: handling file uploads into the bucket.
  • download: retrieving or syncing files from the bucket.
  • local: interacting with locally cached media or temporary files.

This abstraction ensures that upper layers (business, UI, or SDK) can interact with storage operations in a consistent and backend-agnostic way, without referencing any specific provider or implementation detail.

Typical use cases include:

  • Uploading user-generated media (e.g., photos, videos, documents).
  • Downloading or synchronizing files from remote storage.
  • Managing cached or offline-accessible media.

Example:

class MyAppBucket extends StorageFolderImplement {
  @override
  StorageUpload get upload => MyAppStorageUpload();

  @override
  StorageDownload get download => MyAppStorageDownload();

  @override
  LocalMedia get local => MyAppLocalMedia();
}
Implementers

Constructors

StorageFolderImplement()
const

Properties

download → StorageDownload
Provides access to download-related operations for this storage bucket.
no setter
hashCode int
The hash code for this object.
no setterinherited
local → LocalMedia
Provides access to locally stored or cached media.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
upload → StorageUpload
Provides access to upload-related operations for this storage bucket.
no setter

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