copyWith method

Organization copyWith({
  1. String? orgId,
  2. String? name,
  3. bool? isOwner,
  4. bool? isAdmin,
  5. bool? isVerified,
  6. Map<String, dynamic>? config,
  7. List<OrgQuota>? quotas,
})

Implementation

Organization copyWith({
  String? orgId,
  String? name,
  bool? isOwner,
  bool? isAdmin,
  bool? isVerified,
  Map<String, dynamic>? config,
  List<OrgQuota>? quotas,
}) {
  return Organization(
    orgId: orgId ?? this.orgId,
    name: name ?? this.name,
    isOwner: isOwner ?? this.isOwner,
    isAdmin: isAdmin ?? this.isAdmin,
    isVerified: isVerified ?? this.isVerified,
    config: config ?? this.config,
    quotas: quotas ?? this.quotas,
  );
}