copyWith method
Implementation
AvatarModel copyWith({
String? id,
String? name,
String? src,
String? location,
int? version,
}) {
return AvatarModel(
id: id ?? this.id,
name: name ?? this.name,
src: src ?? this.src,
location: location ?? this.location,
version: version ?? this.version,
);
}