copyWith method

AvatarModel copyWith({
  1. String? id,
  2. String? name,
  3. String? src,
  4. String? location,
  5. int? version,
})

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