location function

  1. @riverpod
Future<Location> location(
  1. Ref ref,
  2. String locationId
)

Individual location provider

Implementation

@riverpod
Future<Location> location(Ref ref, String locationId) async {
  final client = ref.read(prodobitClientProvider);
  return client.inventory.getLocation(locationId);
}