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