copyWith method

PageOfComments copyWith({
  1. List<Comment>? comments,
  2. int? maxResults,
  3. int? startAt,
  4. int? total,
})

Implementation

PageOfComments copyWith(
    {List<Comment>? comments, int? maxResults, int? startAt, int? total}) {
  return PageOfComments(
    comments: comments ?? this.comments,
    maxResults: maxResults ?? this.maxResults,
    startAt: startAt ?? this.startAt,
    total: total ?? this.total,
  );
}