FireStore fromSnapshot vs fromMap for reading DocumentSnapshot?
问题 I have been wondering which to use for reading a FireStore snapshot, as I can just use fromSnapshot as snapshot["fieldName"] works just fine. Now, I found an example in Google codelabs at https://codelabs.developers.google.com/codelabs/flutter-firebase/#10 Is this way the definitive way to go? Eg fromSnapshot, and then use fromMap for snapshot.data? What if I dont use fromMap? What am I losing? And then, I have also seen fromJson instead of fromMap... class Record { final String name; final