copyWith method

PaymentResponse copyWith({
  1. bool? success,
  2. String? message,
  3. String? transactionId,
})

Implementation

PaymentResponse copyWith({
  bool? success,
  String? message,
  String? transactionId,
}) {
  return PaymentResponse(
    success: success ?? this.success,
    message: message ?? this.message,
    transactionId: transactionId ?? this.transactionId,
  );
}