add carton editor for mix carton
This commit is contained in:
@@ -37,6 +37,7 @@ class Carton {
|
||||
String? cartonSizeID;
|
||||
String? cartonSizeName;
|
||||
double cartonWeight;
|
||||
bool isSelected;
|
||||
|
||||
int rate;
|
||||
int weight;
|
||||
@@ -158,7 +159,8 @@ class Carton {
|
||||
this.mixBoxType,
|
||||
this.mixCartons = const [],
|
||||
this.mixCartonIDs = const [],
|
||||
this.cartonWeight =0});
|
||||
this.cartonWeight =0,
|
||||
this.isSelected = false});
|
||||
|
||||
Map<String, dynamic> toMap() {
|
||||
List _cargoTypes = cargoTypes.map((c) => c.toMap()).toList();
|
||||
|
||||
@@ -80,4 +80,10 @@ class FcsShipment {
|
||||
fcsShipment.port != this.port ||
|
||||
fcsShipment.destination != this.destination;
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) => other is FcsShipment && other.id == id;
|
||||
|
||||
@override
|
||||
int get hashCode => id.hashCode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user