copyWith method
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? nextOffsetMessageThreadId,
dynamic extra,
int? clientId,
}) =>
ForumTopics(
totalCount: totalCount ?? this.totalCount,
topics: topics ?? this.topics,
nextOffsetDate: nextOffsetDate ?? this.nextOffsetDate,
nextOffsetMessageId: nextOffsetMessageId ?? this.nextOffsetMessageId,
nextOffsetMessageThreadId:
nextOffsetMessageThreadId ?? this.nextOffsetMessageThreadId,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);