copyWith method
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,
);
}