FusabaseStorage class

The main entry point for accessing an FUSABASE Storage bucket.

This class provides methods to interact with storage. It allows creating references, setting retry times, etc.

Constructors

FusabaseStorage({required FusabaseApp app, String? bucket, Duration? maxDownloadRetryTime, Duration? maxOperationRetryTime, Duration? maxUploadRetryTime})
Constructs a new FusabaseStorage instance.

Properties

app ↔ FusabaseApp
getter/setter pair
bucket ↔ String
getter/setter pair
hashCode → int
Overrides the hash code based on app name and bucket.
no setteroverride
maxDownloadRetryTime → Duration
Gets the maximum time to retry download operations.
no setter
maxOperationRetryTime → Duration
Gets the maximum time to retry operations other than uploads or downloads.
no setter
maxUploadRetryTime → Duration
Gets the maximum time to retry upload operations.
no setter
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
ref([String? path]) → Reference
Creates a new Reference from the given path.
refFromURL(String url) → Reference
Creates a new Reference from a URL.
setMaxDownloadRetryTime(Duration time) → void
Sets the maximum time to retry download operations.
setMaxOperationRetryTime(Duration time) → void
Sets the maximum time to retry operations other than uploads or downloads.
setMaxUploadRetryTime(Duration time) → void
Sets the maximum time to retry upload operations.
toString() → String
Returns a string representation of this storage instance.
override

Operators

operator ==(Object other) → bool
Checks equality with another FusabaseStorage instance.
override

Static Properties

instance → FusabaseStorage
Gets the default storage instance for the default app.
no setter

Static Methods

instanceFor({required FusabaseApp app}) → FusabaseStorage
Creates or retrieves a storage instance for the given app.