CommentForest constructor

CommentForest(
  1. SubmissionRef submission, [
  2. List? comments
])

Implementation

CommentForest(SubmissionRef submission, [List? comments])
    : _comments = [],
      _submission = submission {
  if (comments != null) {
    _comments.addAll(comments);
    _comments.forEach((c) => setSubmissionInternal(c, _submission));
  }
}