copyWith method

DataModel copyWith({
  1. String? status,
  2. String? cvc,
  3. Card? card,
  4. Error? error,
})

Implementation

DataModel copyWith({
  String? status,
  String? cvc,
  Card? card,
  Error? error,
}) =>
    DataModel(
      status: status ?? this.status,
      cvc: cvc ?? this.cvc,
      card: card ?? this.card,
      error: error ?? this.error,
    );