BucketStorage class

A utility class for handling file uploads to Firebase Storage.

This class provides methods to upload single or multiple images, retrieve download URLs, check file existence, and select images using the ImagePicker package.

Constructors

BucketStorage()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

checkIfFileExists(String path) Future<bool>
Checks if a file exists in Firebase Storage.
getImageUrl(String filePath) Future<String?>
Retrieves the download URL for a file stored in Firebase Storage.
pickImages() Future<List<File>>
Picks multiple images from the device using the ImagePicker package.
uploadImage(File imageFile, String userId, {String? customPath}) Future<String?>
Uploads a single image file to Firebase Storage under a user-specific path.
uploadMultipleImages(List<File> imageFiles, String userId, {String? customPath}) Future<List<String>>
Uploads multiple image files to Firebase Storage.