galleryDetails function

  1. @riverpod
FutureOr<Gallery> galleryDetails(
  1. Ref ref,
  2. String id
)

Implementation

@riverpod
FutureOr<Gallery> galleryDetails(Ref ref, String id) async {
  final repository = ref.watch(galleryRepositoryProvider);
  return repository.getGalleryById(id);
}