copyWith method
Implementation
PayPeriodDetails copyWith(
{String? startDate,
String? endDate,
String? payDay,
double? grossEarnings,
double? checkAmount}) {
return PayPeriodDetails(
startDate: startDate ?? this.startDate,
endDate: endDate ?? this.endDate,
payDay: payDay ?? this.payDay,
grossEarnings: grossEarnings ?? this.grossEarnings,
checkAmount: checkAmount ?? this.checkAmount);
}