import '../domain/inventory_item.dart';
import '../domain/inventory_repository.dart';

/// Use case: update an existing inventory item.
class UpdateInventoryItem {
  final InventoryRepository repository;

  UpdateInventoryItem(this.repository);

  Future<InventoryItem> call(InventoryItem item) => repository.updateItem(item);
}
