SumupPayment constructor

SumupPayment({
  1. String? title,
  2. required double total,
  3. String currency = 'EUR',
  4. double tip = .0,
  5. bool tipOnCardReader = false,
  6. bool skipSuccessScreen = false,
  7. bool skipFailureScreen = false,
  8. String? foreignTransactionId,
  9. int saleItemsCount = 0,
  10. String? customerEmail,
  11. String? customerPhone,
})

Implementation

SumupPayment({
  this.title,
  required this.total,
  this.currency = 'EUR',
  this.tip = .0,
  this.tipOnCardReader = false,
  this.skipSuccessScreen = false,
  this.skipFailureScreen = false,
  this.foreignTransactionId,
  this.saleItemsCount = 0,
  this.customerEmail,
  this.customerPhone,
}) : assert(!tipOnCardReader || tip == 0,
          'If [tipOnCardReader] is true, [tip] must be zero. The two options are mutually exclusive.');