copyWith method

BodyPain copyWith({
  1. int? painLevel,
  2. PainType? type,
})

Implementation

BodyPain copyWith({int? painLevel, PainType? type}) {
  return BodyPain(
    painLevel: painLevel ?? this.painLevel,
    type: type ?? this.type,
  );
}