copyWith method
PaystubDetails
copyWith({
- DateTime? payPeriodStartDate,
- DateTime? payPeriodEndDate,
- DateTime? payDate,
- String? paystubProvider,
- PaystubPayFrequency? payFrequency,
Implementation
PaystubDetails copyWith(
{DateTime? payPeriodStartDate,
DateTime? payPeriodEndDate,
DateTime? payDate,
String? paystubProvider,
enums.PaystubPayFrequency? payFrequency}) {
return PaystubDetails(
payPeriodStartDate: payPeriodStartDate ?? this.payPeriodStartDate,
payPeriodEndDate: payPeriodEndDate ?? this.payPeriodEndDate,
payDate: payDate ?? this.payDate,
paystubProvider: paystubProvider ?? this.paystubProvider,
payFrequency: payFrequency ?? this.payFrequency);
}