storageService function

  1. @riverpod
StorageService storageService(
  1. dynamic ref
)

A provider for the StorageService class.

This provider is used to provide the StorageService class to the rest of the application. It is used to interact with Firebase Storage.

Usage:

ref.read(storageServiceProvider).uploadFile(file, filePath, type);

Implementation

@riverpod
StorageService storageService(StorageServiceRef ref) {
  final storageInstance = ref.read(storageInstanceProvider);
  return StorageService(storageInstance);
}