copyWith method

IncomeBreakdown copyWith({
  1. IncomeBreakdownType? type,
  2. double? rate,
  3. double? hours,
  4. double? total,
})

Implementation

IncomeBreakdown copyWith(
    {enums.IncomeBreakdownType? type,
    double? rate,
    double? hours,
    double? total}) {
  return IncomeBreakdown(
      type: type ?? this.type,
      rate: rate ?? this.rate,
      hours: hours ?? this.hours,
      total: total ?? this.total);
}