copyWith method

DurationDTO copyWith({
  1. String? friendly,
  2. int? millis,
})

Implementation

DurationDTO copyWith({String? friendly, int? millis}) {
  return DurationDTO(
    friendly: friendly ?? this.friendly,
    millis: millis ?? this.millis,
  );
}