FindCommentsResponse constructor

FindCommentsResponse({
  1. int? total,
  2. List<Comment>? comments,
  3. ResponseError? error,
})

Builds a FindCommentsResponse

total: The total number of comments returned comments: The list of Comment error: An error if there was error while fetching the comments

Implementation

FindCommentsResponse({int? total, this.comments, super.error})
    : total = total ?? comments?.length ?? 0;