getEntity method
Implementation
@override
Future<PresentationEntity?> getEntity(String? id,
{Function(Exception)? onError}) async {
try {
var collection = presentationCollection.doc(id);
var doc = await collection.get();
return PresentationEntity.fromMap(doc.data());
} on Exception catch (e) {
if (onError != null) {
onError(e);
} else {
print("Error whilst retrieving Presentation with id $id");
print("Exceptoin: $e");
}
}
return null;
}