copyWith method

PaystubDeduction copyWith({
  1. String? type,
  2. bool? isPretax,
  3. double? total,
})

Implementation

PaystubDeduction copyWith({String? type, bool? isPretax, double? total}) {
  return PaystubDeduction(
      type: type ?? this.type,
      isPretax: isPretax ?? this.isPretax,
      total: total ?? this.total);
}