add prompt confirmation and update carton
This commit is contained in:
@@ -6,7 +6,6 @@ class CartonSize {
|
||||
double height;
|
||||
CartonSize({this.id, this.name, this.length, this.width, this.height});
|
||||
|
||||
|
||||
Map<String, dynamic> toMap() {
|
||||
return {
|
||||
'id': id,
|
||||
@@ -27,4 +26,10 @@ class CartonSize {
|
||||
);
|
||||
}
|
||||
|
||||
bool isChangedForEdit(CartonSize cartonSize) {
|
||||
return cartonSize.name != this.name ||
|
||||
cartonSize.length != this.length ||
|
||||
cartonSize.width != this.width ||
|
||||
cartonSize.height != this.height;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user