FirebaseFileStorage class
CloudFileStorage on Firebase Storage, under root (the project's
folder, data/{projectId}, as for its cloud data). A path can't leave
root; full URLs (https://, gs://) address files directly.
- Implemented types
Constructors
- FirebaseFileStorage(FirebaseStorage storage, {required String root})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- root → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storage → FirebaseStorage
-
final
Methods
-
delete(
String pathOrUrl) → Future< void> -
Deletes the file at
pathOrUrl.override -
downloadUrl(
String path) → Future< String> -
The download URL of the file at
path.override -
list(
String folder) → Future< List< CloudFile> > -
The files directly in
folder.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
upload(
String path, Uint8List bytes, {String? contentType, void onProgress(double sent)?}) → Future< CloudFile> -
Uploads
bytestopath.onProgressgets the fraction sent (0–1) as the upload goes, when the storage can tell.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited