updateEntity method
Implementation
@override
Future<ChatEntity> updateEntity(String documentID, ChatEntity value) {
return chatCollection
.doc(documentID)
.update(value.toDocument())
.then((_) => value)
.then((v) async {
var newValue = await getEntity(documentID);
if (newValue == null) {
return value;
} else {
return newValue;
}
});
}