copyWith method
Top
copyWith({
- TopType? topType,
- AccessoriesType? accessoriesType,
- HatColor? hatColor,
- HairColor? hairColor,
- FacialHair? facialHair,
Implementation
Top copyWith({
TopType? topType,
AccessoriesType? accessoriesType,
HatColor? hatColor,
HairColor? hairColor,
FacialHair? facialHair,
}) {
return Top(
topType: topType ?? this.topType,
accessoriesType: accessoriesType ?? this.accessoriesType,
hatColor: hatColor ?? this.hatColor,
hairColor: hairColor ?? this.hairColor,
facialHair: facialHair ?? this.facialHair,
);
}