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,15 +1,15 @@
import 'package:fcs/domain/entities/package.dart';
class Processing {
String id;
String? id;
//for consignee
String userID;
String userName;
String userPhoneNumber;
String? userID;
String? userName;
String? userPhoneNumber;
//for shipper
String fcsID;
String shipperName;
String shipperPhoneNumber;
String? fcsID;
String? shipperName;
String? shipperPhoneNumber;
List<Package> packages;
@@ -21,7 +21,7 @@ class Processing {
this.fcsID,
this.shipperName,
this.shipperPhoneNumber,
this.packages});
this.packages = const []});
@override
bool operator ==(Object other) => other is Processing && other.id == id;