fix errors
This commit is contained in:
@@ -43,10 +43,9 @@ class Carton {
|
||||
String remark;
|
||||
DateTime arrivedDate;
|
||||
String cartonNumber;
|
||||
|
||||
List<String> packageIDs;
|
||||
|
||||
List<Package> packages;
|
||||
|
||||
List<CargoType> cargoTypes;
|
||||
List<Carton> cartons;
|
||||
|
||||
@@ -193,4 +192,10 @@ class Carton {
|
||||
deliveryAddress: _da,
|
||||
cargoTypes: cargoTypes);
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) => other is Carton && other.id == id;
|
||||
|
||||
@override
|
||||
int get hashCode => id.hashCode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user