17 lines
493 B
17 lines
493 B
import 'package:thesis_shop/models/product.dart';
|
|
import 'package:thesis_shop/service/product_service.dart';
|
|
|
|
class MockedProductService implements ProductService {
|
|
@override
|
|
Future<List<Product>> fetchProducts() async {
|
|
return const [
|
|
Product(title: 'Bananen', price: 3),
|
|
Product(title: 'Äpfel', price: 2),
|
|
Product(title: 'Birnen', price: 2.5),
|
|
Product(title: 'Kirschen', price: 1.2),
|
|
];
|
|
}
|
|
|
|
@override
|
|
String get url => throw UnimplementedError();
|
|
}
|
|
|