copyWith method

ForumTopics copyWith({
  1. int? totalCount,
  2. List<ForumTopic>? topics,
  3. int? nextOffsetDate,
  4. int? nextOffsetMessageId,
  5. int? nextOffsetForumTopicId,
  6. dynamic extra,
  7. int? clientId,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

ForumTopics copyWith({
  int? totalCount,
  List<ForumTopic>? topics,
  int? nextOffsetDate,
  int? nextOffsetMessageId,
  int? nextOffsetForumTopicId,
  dynamic extra,
  int? clientId,
}) => ForumTopics(
  totalCount: totalCount ?? this.totalCount,
  topics: topics ?? this.topics,
  nextOffsetDate: nextOffsetDate ?? this.nextOffsetDate,
  nextOffsetMessageId: nextOffsetMessageId ?? this.nextOffsetMessageId,
  nextOffsetForumTopicId:
      nextOffsetForumTopicId ?? this.nextOffsetForumTopicId,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);