add prompt confirmation and update carton
This commit is contained in:
@@ -131,6 +131,12 @@ class Package {
|
||||
currentStatusDate: DateTime.parse(json['status_date']));
|
||||
}
|
||||
|
||||
bool isChangedForEdit(Package package) {
|
||||
return package.trackingID != this.trackingID ||
|
||||
package.remark != this.remark ||
|
||||
package.fcsID != this.fcsID;
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) => other is Package && other.id == id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user