FindCommentsResponse constructor Null safety

  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


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