Skip to content

Commit 1cf23ed

Browse files
authored
[101] Restore legacy to data.dart and product.dart (#75)
1 parent 506a642 commit 1cf23ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mdc_100_series/lib/model/data.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import 'product.dart';
1616

1717
List<Product> getProducts(Category category) {
18-
allProducts = <Product>[
18+
const allProducts = <Product>[
1919
Product(
2020
category: Category.accessories,
2121
id: 0,

mdc_100_series/lib/model/product.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import 'package:flutter/foundation.dart';
1717
enum Category { all, accessories, clothing, home, }
1818

1919
class Product {
20-
Product({
20+
const Product({
2121
@required this.category,
2222
@required this.id,
2323
@required this.isFeatured,

0 commit comments

Comments
 (0)