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,11 +1,15 @@
class CustomDuty {
String id;
String productType;
String desc;
String? id;
String? productType;
String? desc;
double fee;
double shipmentRate;
CustomDuty(
{this.id, this.productType, this.desc, this.fee, this.shipmentRate});
{this.id,
this.productType,
this.desc,
this.fee = 0,
this.shipmentRate = 0});
factory CustomDuty.fromMap(Map<String, dynamic> map, String id) {
return CustomDuty(