update main model

This commit is contained in:
tzw
2021-09-10 15:15:20 +06:30
parent 51a5fe0740
commit 3eacbef117
11 changed files with 68 additions and 70 deletions

View File

@@ -90,7 +90,7 @@ class CustomerModel extends BaseModel {
}
}
Future<User> getUser(String id) async {
Future<User> getUser(String? id) async {
String path = "/$user_collection";
var snap = await Firestore.instance.collection(path).document(id).get();
return User.fromMap(snap.data, snap.documentID);