FirebaseStorageWeb class
The Web implementation of the FirebaseStoragePlatform.
- Inheritance
-
- Object
- PlatformInterface
- FirebaseStorageWeb
Constructors
- FirebaseStorageWeb({FirebaseApp? app, required String bucket})
- Construct the plugin.
- FirebaseStorageWeb.forMock(Storage? _webStorage, {required String bucket, FirebaseApp? app})
-
Create a FirebaseStorageWeb injecting a
fb.Storage
object.
Properties
- app → FirebaseApp
-
Returns the
FirebaseApp
for the current instance.no setterinherited - appInstance → FirebaseApp?
-
finalinherited
- bucket → String
-
The storage bucket of this instance.
finalinherited
- delegate → Storage
-
Lazily initialize
webStorage
on first method callno setter - emulatorHost ↔ String?
-
The Storage emulator host this instance is configured to use. This
was required since iOS does not persist these settings on instances and
they need to be set every time when getting a
FIRStorage
instance.getter/setter pairinherited - emulatorPort ↔ int?
-
The Storage emulator port this instance is configured to use. This
was required since iOS does not persist these settings on instances and
they need to be set every time when getting a
FIRStorage
instance.getter/setter pairinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- maxDownloadRetryTime → int
-
The maximum time to retry downloads in milliseconds.
no setter
- maxOperationRetryTime → int
-
The maximum time to retry operations other than uploads or downloads in milliseconds.
no setter
- maxUploadRetryTime → int
-
The maximum time to retry uploads in milliseconds.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
delegateFor(
{FirebaseApp? app, required String bucket}) → FirebaseStoragePlatform - Returns a FirebaseStorageWeb with the provided arguments.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
ref(
String path, {ReferenceBuilder? refBuilder}) → ReferencePlatform - Returns a reference for the given path in the default bucket.
-
setMaxDownloadRetryTime(
int time) → void - The new maximum download retry time in milliseconds.
-
setMaxOperationRetryTime(
int time) → void - The new maximum operation retry time in milliseconds.
-
setMaxUploadRetryTime(
int time) → void - The new maximum upload retry time in milliseconds.
-
toString(
) → String -
A string representation of this object.
inherited
-
useStorageEmulator(
String host, int port) → Future< void> - Changes this instance to point to a Storage emulator running locally.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
registerWith(
Registrar registrar) → void - Called by PluginRegistry to register this plugin for Flutter Web.