copyWith method

Supergroup copyWith({
  1. int? id,
  2. Usernames? usernames,
  3. int? date,
  4. ChatMemberStatus? status,
  5. int? memberCount,
  6. bool? hasLinkedChat,
  7. bool? hasLocation,
  8. bool? signMessages,
  9. bool? joinToSendMessages,
  10. bool? joinByRequest,
  11. bool? isSlowModeEnabled,
  12. bool? isChannel,
  13. bool? isBroadcastGroup,
  14. bool? isForum,
  15. bool? isVerified,
  16. String? restrictionReason,
  17. bool? isScam,
  18. bool? isFake,
  19. dynamic extra,
  20. int? clientId,
})

Implementation

Supergroup copyWith({
  int? id,
  Usernames? usernames,
  int? date,
  ChatMemberStatus? status,
  int? memberCount,
  bool? hasLinkedChat,
  bool? hasLocation,
  bool? signMessages,
  bool? joinToSendMessages,
  bool? joinByRequest,
  bool? isSlowModeEnabled,
  bool? isChannel,
  bool? isBroadcastGroup,
  bool? isForum,
  bool? isVerified,
  String? restrictionReason,
  bool? isScam,
  bool? isFake,
  dynamic extra,
  int? clientId,
}) =>
    Supergroup(
      id: id ?? this.id,
      usernames: usernames ?? this.usernames,
      date: date ?? this.date,
      status: status ?? this.status,
      memberCount: memberCount ?? this.memberCount,
      hasLinkedChat: hasLinkedChat ?? this.hasLinkedChat,
      hasLocation: hasLocation ?? this.hasLocation,
      signMessages: signMessages ?? this.signMessages,
      joinToSendMessages: joinToSendMessages ?? this.joinToSendMessages,
      joinByRequest: joinByRequest ?? this.joinByRequest,
      isSlowModeEnabled: isSlowModeEnabled ?? this.isSlowModeEnabled,
      isChannel: isChannel ?? this.isChannel,
      isBroadcastGroup: isBroadcastGroup ?? this.isBroadcastGroup,
      isForum: isForum ?? this.isForum,
      isVerified: isVerified ?? this.isVerified,
      restrictionReason: restrictionReason ?? this.restrictionReason,
      isScam: isScam ?? this.isScam,
      isFake: isFake ?? this.isFake,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );