copyWith method

PaymentMethodData copyWith({
  1. String? token,
  2. String? displayNumber,
  3. String? brand,
})

Implementation

PaymentMethodData copyWith({
  String? token,
  String? displayNumber,
  String? brand,
}) {
  return PaymentMethodData(
    token: token ?? this.token,
    displayNumber: displayNumber ?? this.displayNumber,
    brand: brand ?? this.brand,
  );
}