search update
This commit is contained in:
@@ -60,7 +60,7 @@ class DeliveryAddressModel extends BaseModel {
|
||||
Future<DeliveryAddress> getDeliveryAddress(String id) async {
|
||||
String path = "/$user_collection/${user!.id}/$delivery_address_collection";
|
||||
var snap = await FirebaseFirestore.instance.collection(path).doc(id).get();
|
||||
return DeliveryAddress.fromMap(snap.data as Map<String, dynamic>, snap.id);
|
||||
return DeliveryAddress.fromMap(snap.data()!, snap.id);
|
||||
}
|
||||
|
||||
void initUser(user) {
|
||||
|
||||
Reference in New Issue
Block a user