MethodChannelFirebaseStorage class
Method Channel delegate for FirebaseStoragePlatform.
- Inheritance
-
- Object
- PlatformInterface
- FirebaseStoragePlatform
- MethodChannelFirebaseStorage
Constructors
- MethodChannelFirebaseStorage({required FirebaseApp app, required String bucket})
-
Creates a new MethodChannelFirebaseStorage instance with an
app
and/orbucket
.
Properties
- app → FirebaseApp
-
Returns the FirebaseApp for the current instance.
no setterinherited
- appInstance → FirebaseApp?
-
finalinherited
- bucket → String
-
The storage bucket of this instance.
finalinherited
- 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.
getter/setter pairoverride-getter
- maxOperationRetryTime ↔ int
-
The maximum time to retry operations other than uploads or downloads in milliseconds.
getter/setter pairoverride-getter
- maxUploadRetryTime ↔ int
-
The maximum time to retry uploads in milliseconds.
getter/setter pairoverride-getter
- 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.
override
-
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.
override
-
setMaxDownloadRetryTime(
int time) → Future< void> -
The new maximum download retry time in milliseconds.
override
-
setMaxOperationRetryTime(
int time) → void -
The new maximum operation retry time in milliseconds.
override
-
setMaxUploadRetryTime(
int time) → void -
The new maximum upload retry time in milliseconds.
override
-
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → MethodChannelFirebaseStorage
-
Returns a stub instance to allow the platform interface to access
the class instance statically.
no setter
- nextMethodChannelHandleId → int
-
Increments and returns the next channel ID handler for Storage.
no setter
-
taskObservers
→ Map<
int, StreamController> -
A map containing all Task stream observers, keyed by their handle.
final
Constants
- channel → const MethodChannel
- The MethodChannelFirebaseStorage method channel.