cleanup code

This commit is contained in:
tzw
2024-01-23 16:28:08 +06:30
parent a1e87cdbf6
commit f3f75a80c6
96 changed files with 232 additions and 439 deletions

View File

@@ -279,19 +279,19 @@ class _ShipmentEditorState extends State<ShipmentEditor> {
}).toList();
}
_addBox(Carton box) {
_addBox(Carton? box) {
if (box == null) return;
box.cartonType = carton_from_shipments;
_shipment!.boxes.add(box);
setState(() {});
}
_saveBox(Carton box) {
_saveBox(Carton? box) {
if (box == null) return;
setState(() {});
}
_removeBox(Carton box) {
_removeBox(Carton? box) {
if (box == null) return;
_shipment!.boxes.remove(box);
setState(() {});