cloudFunctionService function

  1. @riverpod
CloudFunctionService cloudFunctionService(
  1. dynamic ref
)

A provider for the CloudFunctionService class.

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

Usage:

ref.read(cloudFunctionServiceProvider).getProfileData();

Implementation

@riverpod
CloudFunctionService cloudFunctionService(CloudFunctionServiceRef ref) {
  final functionsInstance = ref.read(cloudFunctionsInstanceProvider);
  return CloudFunctionService(functionsInstance);
}