check null safety

This commit is contained in:
tzw
2021-09-10 14:27:38 +06:30
parent a144c945b6
commit 7670779b03
57 changed files with 620 additions and 626 deletions

View File

@@ -1,9 +1,9 @@
class DiscountByWeight {
String id;
String? id;
double weight;
double discount;
DiscountByWeight({this.id, this.weight, this.discount});
DiscountByWeight({this.id, this.weight = 0, this.discount = 0});
factory DiscountByWeight.fromMap(Map<String, dynamic> map, String id) {
return DiscountByWeight(