copyWith method

ForumTopicInfo copyWith({
  1. int? messageThreadId,
  2. String? name,
  3. ForumTopicIcon? icon,
  4. int? creationDate,
  5. MessageSender? creatorId,
  6. bool? isGeneral,
  7. bool? isOutgoing,
  8. bool? isClosed,
  9. bool? isHidden,
  10. dynamic extra,
  11. int? clientId,
})

Implementation

ForumTopicInfo copyWith({
  int? messageThreadId,
  String? name,
  ForumTopicIcon? icon,
  int? creationDate,
  MessageSender? creatorId,
  bool? isGeneral,
  bool? isOutgoing,
  bool? isClosed,
  bool? isHidden,
  dynamic extra,
  int? clientId,
}) =>
    ForumTopicInfo(
      messageThreadId: messageThreadId ?? this.messageThreadId,
      name: name ?? this.name,
      icon: icon ?? this.icon,
      creationDate: creationDate ?? this.creationDate,
      creatorId: creatorId ?? this.creatorId,
      isGeneral: isGeneral ?? this.isGeneral,
      isOutgoing: isOutgoing ?? this.isOutgoing,
      isClosed: isClosed ?? this.isClosed,
      isHidden: isHidden ?? this.isHidden,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );