copyWith method

BasicGroup copyWith({
  1. int? id,
  2. int? memberCount,
  3. ChatMemberStatus? status,
  4. bool? isActive,
  5. int? upgradedToSupergroupId,
  6. dynamic extra,
  7. int? clientId,
})

Implementation

BasicGroup copyWith({
  int? id,
  int? memberCount,
  ChatMemberStatus? status,
  bool? isActive,
  int? upgradedToSupergroupId,
  dynamic extra,
  int? clientId,
}) => BasicGroup(
  id: id ?? this.id,
  memberCount: memberCount ?? this.memberCount,
  status: status ?? this.status,
  isActive: isActive ?? this.isActive,
  upgradedToSupergroupId: upgradedToSupergroupId ?? this.upgradedToSupergroupId,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);