copyWith method
User
copyWith(
{ - String? email,
- String? phone,
- String? provider,
- List<String>? roles,
- bool? isActive,
- dynamic lastLogin,
- String? application,
- DateTime? createdAt,
- DateTime? updatedAt,
- String? id,
})
Implementation
User copyWith({
String? email,
String? phone,
String? provider,
List<String>? roles,
bool? isActive,
dynamic lastLogin,
String? application,
DateTime? createdAt,
DateTime? updatedAt,
String? id,
}) {
return User(
email: email ?? this.email,
phone: phone ?? this.phone,
provider: provider ?? this.provider,
roles: roles ?? this.roles,
isActive: isActive ?? this.isActive,
lastLogin: lastLogin ?? this.lastLogin,
application: application ?? this.application,
createdAt: createdAt ?? this.createdAt,
updatedAt: updatedAt ?? this.updatedAt,
id: id ?? this.id,
);
}