FirebaseStoragePlatform class abstract
The Firebase Storage platform interface.
This class should be extended by any classes implementing the plugin on other Flutter supported platforms.
- Inheritance
-
- Object
- PlatformInterface
- FirebaseStoragePlatform
Constructors
- FirebaseStoragePlatform({FirebaseApp? appInstance, required String bucket})
- Create an instance using app
- FirebaseStoragePlatform.instanceFor({required FirebaseApp app, required String bucket})
-
Returns a FirebaseStoragePlatform with the provided arguments.
factory
Properties
- app → FirebaseApp
-
Returns the
FirebaseApp
for the current instance.no setter - appInstance → FirebaseApp?
-
final
- bucket → String
-
The storage bucket of this instance.
final
- 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 pair - 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 pair - 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(
{required FirebaseApp app, required String bucket}) → FirebaseStoragePlatform -
Enables delegates to create new instances of themselves if a none default
FirebaseApp
instance is required by the user. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
ref(
String path) → 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
-
useEmulator(
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 Properties
- instance ↔ FirebaseStoragePlatform
-
The current default FirebaseStoragePlatform instance.
getter/setter pair