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 Discount {
String id;
String code;
String customerId;
String customerName;
String status;
String? id;
String? code;
String? customerId;
String? customerName;
String? status;
double amount;
Discount({
@@ -11,7 +11,7 @@ class Discount {
this.code,
this.customerId,
this.customerName,
this.amount,
this.amount = 0,
this.status,
});