StorageReference class

Properties

path → String
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

child(String path) StorageReference
Returns a new instance of StorageReference pointing to a child location of the current reference.
delete() → Future<void>
getBucket() → Future<String>
Returns the Google Cloud Storage bucket that holds this object.
getData(int maxSize) → Future<Uint8List>
Asynchronously downloads the object at the StorageReference to a list in memory. A list of the provided max size will be allocated.
getDownloadURL() → Future
Asynchronously retrieves a long lived download URL with a revokable token. This can be used to share the file with others, but can be revoked by a developer in the Firebase Console if desired.
getMetadata() → Future<StorageMetadata>
Retrieves metadata associated with an object at this StorageReference.
getName() → Future<String>
Returns the short name of this object.
getParent() StorageReference
Returns a new instance of StorageReference pointing to the parent location or null if this instance references the root location.
getPath() → Future<String>
Returns the full path to this object, not including the Google Cloud Storage bucket.
getRoot() StorageReference
Returns a new instance of StorageReference pointing to the root location.
getStorage() FirebaseStorage
Returns the FirebaseStorage service which created this reference.
put(File file, [ StorageMetadata metadata ]) StorageUploadTask
This method is deprecated. Please use putFile instead. [...]
putData(Uint8List data, [ StorageMetadata metadata ]) StorageUploadTask
Asynchronously uploads byte data to the currently specified StorageReference, with an optional metadata.
putFile(File file, [ StorageMetadata metadata ]) StorageUploadTask
Asynchronously uploads a file to the currently specified StorageReference, with an optional metadata.
updateMetadata(StorageMetadata metadata) → Future<StorageMetadata>
Updates the metadata associated with this StorageReference. [...]
writeToFile(File file) StorageFileDownloadTask
Asynchronously downloads the object at this StorageReference to a specified system file.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited