This could initially was working but after firebase update, it is now giving me this error. I have added asterisks to the part giving the error. The error message has been
Try the following:
Record.fromSnapshot(DocumentSnapshot snapshot)
: this.fromMap(snapshot.data(), reference: snapshot.reference);
data()
is a method:
/// Contains all the data of this [DocumentSnapshot].
Map data() {
return _CodecUtility.replaceDelegatesWithValueInMap(
_delegate.data(), _firestore);
}
that returns a Map