in results_feed/lib/src/services/firestore_service.dart [147:165]
Future<firestore.DocumentSnapshot> saveComment(bool approve, String comment,
{List<String> resultIds,
List<String> tryResultIds,
int blamelistStart,
int blamelistEnd,
int review}) async {
final reference = await app.firestore().collection('comments').add({
'author': app.auth().currentUser.email,
if (comment != null) 'comment': comment,
'created': DateTime.now(),
if (approve != null) 'approved': approve,
if (resultIds != null) 'results': resultIds,
if (tryResultIds != null) 'try_results': tryResultIds,
if (blamelistStart != null) 'blamelist_start_index': blamelistStart,
if (blamelistStart != null) 'blamelist_end_index': blamelistEnd,
if (review != null) 'review': review
});
return reference.get();
}