copyWith method

Pay copyWith({
  1. double? amount,
  2. String? currency,
})

Implementation

Pay copyWith({double? amount, String? currency}) {
  return Pay(
      amount: amount ?? this.amount, currency: currency ?? this.currency);
}