copyWith method

PhysicalDescription copyWith({
  1. Hair? hairStyle,
  2. String? eyes,
  3. String? skin,
  4. int? height,
  5. String? build,
  6. String? face,
  7. Hair? beard,
  8. List<String>? specialFeatures,
})

Implementation

PhysicalDescription copyWith({
  Hair? hairStyle,
  String? eyes,
  String? skin,
  int? height,
  String? build,
  String? face,
  Hair? beard,
  List<String>? specialFeatures,
}) {
  return PhysicalDescription(
    hairStyle: hairStyle ?? this.hairStyle,
    eyes: eyes ?? this.eyes,
    skin: skin ?? this.skin,
    height: height ?? this.height,
    build: build ?? this.build,
    face: face ?? this.face,
    beard: beard ?? this.beard,
    specialFeatures: specialFeatures ?? this.specialFeatures,
  );
}