copyWith method

TimeTrackingDetails copyWith({
  1. String? originalEstimate,
  2. int? originalEstimateSeconds,
  3. String? remainingEstimate,
  4. int? remainingEstimateSeconds,
  5. String? timeSpent,
  6. int? timeSpentSeconds,
})

Implementation

TimeTrackingDetails copyWith(
    {String? originalEstimate,
    int? originalEstimateSeconds,
    String? remainingEstimate,
    int? remainingEstimateSeconds,
    String? timeSpent,
    int? timeSpentSeconds}) {
  return TimeTrackingDetails(
    originalEstimate: originalEstimate ?? this.originalEstimate,
    originalEstimateSeconds:
        originalEstimateSeconds ?? this.originalEstimateSeconds,
    remainingEstimate: remainingEstimate ?? this.remainingEstimate,
    remainingEstimateSeconds:
        remainingEstimateSeconds ?? this.remainingEstimateSeconds,
    timeSpent: timeSpent ?? this.timeSpent,
    timeSpentSeconds: timeSpentSeconds ?? this.timeSpentSeconds,
  );
}