copyWith method

Member copyWith({
  1. String? id,
  2. String? userId,
  3. String? organizationId,
  4. String? role,
  5. DateTime? createdAt,
  6. User? user,
})

Implementation

Member copyWith({
  String? id,
  String? userId,
  String? organizationId,
  String? role,
  DateTime? createdAt,
  User? user,
}) {
  return Member(
    id: id ?? this.id,
    userId: userId ?? this.userId,
    organizationId: organizationId ?? this.organizationId,
    role: role ?? this.role,
    createdAt: createdAt ?? this.createdAt,
    user: user ?? this.user,
  );
}