FindCommentsResponse constructor
FindCommentsResponse({
- int? total,
- List<
Comment> ? comments, - 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;