copyWithWrapped method

PaystubYTDDetails copyWithWrapped({
  1. Wrapped<double?>? grossEarnings,
  2. Wrapped<double?>? netEarnings,
})

Implementation

PaystubYTDDetails copyWithWrapped(
    {Wrapped<double?>? grossEarnings, Wrapped<double?>? netEarnings}) {
  return PaystubYTDDetails(
      grossEarnings:
          (grossEarnings != null ? grossEarnings.value : this.grossEarnings),
      netEarnings:
          (netEarnings != null ? netEarnings.value : this.netEarnings));
}