cleanup code
This commit is contained in:
@@ -293,11 +293,9 @@ class _PackageCartonEditorState extends State<PackageCartonEditor> {
|
||||
_updateCargo(CargoType cargo) {
|
||||
setState(() {
|
||||
var _c = _cargoTypes.firstWhere((e) => e.id == cargo.id);
|
||||
if (_c != null) {
|
||||
_c.weight = cargo.weight;
|
||||
_c.qty = cargo.qty;
|
||||
}
|
||||
});
|
||||
_c.weight = cargo.weight;
|
||||
_c.qty = cargo.qty;
|
||||
});
|
||||
}
|
||||
|
||||
_creatCarton() async {
|
||||
|
||||
Reference in New Issue
Block a user