null safety
This commit is contained in:
@@ -36,7 +36,7 @@ class Package {
|
||||
DeliveryAddress? deliveryAddress;
|
||||
|
||||
//for packages in processing
|
||||
List<File> photoFiles;
|
||||
List<File?> photoFiles;
|
||||
|
||||
int get amount => rate != null && weight != null ? rate * weight : 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user