get method
Returns the entry with the specified id
.
Implementation
@override
Future<Model> get(String id) {
_handleDocRealTimeUpdate(_collectionReference.doc(id));
return _collectionReference.doc(id).get().then((value) {
final Map<String, dynamic> data = (value.data() as Map<String, dynamic>);
return Model(
id: id, userId: data[Model.userIdKey], data: data[Model.dataKey]);
});
}