copyWith method

ApplePayItem copyWith({
  1. String? label,
  2. double? amount,
})

Implementation

ApplePayItem copyWith({String? label, double? amount}) {
  return ApplePayItem(
      label: label ?? this.label, amount: amount ?? this.amount);
}