copyWith method

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

Implementation

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