driveApiService function

  1. @Riverpod(keepAlive: true)
DriveApiService driveApiService(
  1. dynamic ref
)

A provider for the DriveApiService class.

This provider is used to provide the DriveApiService class to the rest of the application. It is used to interact with Google Drive.

Usage:

ref.read(driveApiService).fetchFiles();

Implementation

@Riverpod(keepAlive: true)
DriveApiService driveApiService(DriveApiServiceRef ref) {
  final driveClient = ref.watch(driveClientProvider.future);
  return DriveApiService(driveClient);
}