null safety

This commit is contained in:
Phaung Phaung
2021-09-13 09:52:36 +06:30
parent a102369daf
commit 192d81e426
4 changed files with 25 additions and 18 deletions

View File

@@ -95,7 +95,7 @@ class DeliveryAddressModel extends BaseModel {
.collection("$path")
.orderBy("full_name")
.get();
return querySnap.docs
return querySnap.docs
.map((e) =>
DeliveryAddress.fromMap(e.data as Map<String, dynamic>, e.id))
.toList();