copyWith method
Implementation
ProfileModel copyWith({
String? email,
String? username,
}) {
return ProfileModel(
email: email ?? this.email,
username: username ?? this.username,
);
}
ProfileModel copyWith({
String? email,
String? username,
}) {
return ProfileModel(
email: email ?? this.email,
username: username ?? this.username,
);
}