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

/// Use case: create a new inventory item.
class CreateInventoryItem {
  final InventoryRepository repository;

  CreateInventoryItem(this.repository);

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