update method
Updates fields in the document referred to by this DocumentReference.
If no document exists yet, the update will fail.
Implementation
Future<void> update(D data) {
return raw.update(
_firestore._serializers.serialize(data, specifiedType: FullType(D))
as Map<String, dynamic>,
);
}