copyWith method
Implementation
User copyWith({
int? id,
String? fullName,
String? userName,
String? avatar,
String? bio,
}) {
return User(
id: id ?? this.id,
fullName: fullName ?? this.fullName,
userName: userName ?? this.userName,
avatar: avatar ?? this.avatar,
bio: bio ?? this.bio,
);
}