getProductById method

Future<Either<Failure, Product>> getProductById(
  1. int id
)

Implementation

Future<Either<Failure, Product>> getProductById(int id) {
  return _getProductByIdUseCase.execute(id);
}