ReferencePlatform class abstract

The interface a reference must implement.

Inheritance
  • Object
  • PlatformInterface
  • ReferencePlatform

Constructors

ReferencePlatform(FirebaseStoragePlatform storage, String path)

Properties

bucket String
The name of the bucket containing this reference's object.
no setter
fullPath String
The full path of this object.
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
The short name of this object, which is the last component of the full path.
no setter
parent ReferencePlatform?
A reference pointing to the parent location of this reference, or null if this reference is the root.
no setter
root ReferencePlatform
A reference to the root of this reference's bucket.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storage FirebaseStoragePlatform
The storage service associated with this reference.
final

Methods

child(String path) ReferencePlatform
Returns a reference to a relative path from this reference.
delete() Future<void>
Deletes the object at this reference's location.
getData(int maxSize) Future<Uint8List?>
Asynchronously downloads the object at the StorageReference to a list in memory.
getDownloadURL() Future<String>
Fetches a long lived download URL for this object.
getMetadata() Future<FullMetadata>
Fetches metadata for the object at this location, if one exists.
list([ListOptions? options]) Future<ListResultPlatform>
List items (files) and prefixes (folders) under this storage reference.
listAll() Future<ListResultPlatform>
List all items (files) and prefixes (folders) under this storage reference.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putBlob(dynamic data, [SettableMetadata? metadata]) TaskPlatform
Upload a Blob. Note; this is only supported on web platforms.
putData(Uint8List data, [SettableMetadata? metadata]) TaskPlatform
Uploads data to this reference's location.
putFile(File file, [SettableMetadata? metadata]) TaskPlatform
Upload a File from the filesystem. The file must exist.
putString(String data, PutStringFormat format, [SettableMetadata? metadata]) TaskPlatform
Upload a String value as a storage object.
toString() String
A string representation of this object.
inherited
updateMetadata(SettableMetadata metadata) Future<FullMetadata>
Updates the metadata on a storage object.
writeToFile(File file) TaskPlatform
Writes a remote storage object to the local filesystem.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

verifyExtends(ReferencePlatform instance) → void
Throws an AssertionError if instance does not extend ReferencePlatform.