populate method
Promotes this SubmissionRef into a populated Submission
.
Implementation
Future<Submission> populate() async {
try {
final response = await fetch();
final submission = response[0]['listing'][0];
submission._comments = CommentForest(submission, response[1]['listing']);
return submission;
// ignore: unused_catch_clause
} on DRAWNotFoundException catch (e) {
throw DRAWInvalidSubmissionException(_id);
}
}