Aamarpay constructor

Aamarpay({
  1. required bool isSandBox,
  2. required String successUrl,
  3. required String failUrl,
  4. required String cancelUrl,
  5. required String storeID,
  6. required String transactionID,
  7. String? transactionAmount,
  8. TextEditingController? transactionAmountFromTextField,
  9. required String signature,
  10. String? description,
  11. required String? customerName,
  12. required String? customerEmail,
  13. required String customerMobile,
  14. @Deprecated('Use status function insted of paymentStatus') PaymentStatus<String>? paymentStatus,
  15. IsLoadingStaus<bool>? isLoading,
  16. required Widget child,
  17. ReadUrl<String>? returnUrl,
  18. Status<EventState, String>? status,
  19. String? customerAddress1,
  20. String? customerAddress2,
  21. String? customerCity,
  22. String? customerState,
  23. String? customerPostCode,
  24. String? optA,
  25. String? optB,
  26. String? optC,
  27. String? optD,
})

Implementation

Aamarpay({
  required this.isSandBox,
  required this.successUrl,
  required this.failUrl,
  required this.cancelUrl,
  required this.storeID,
  required this.transactionID,
  this.transactionAmount,
  this.transactionAmountFromTextField,
  required this.signature,
  this.description,
  required this.customerName,
  required this.customerEmail,
  required this.customerMobile,
  @Deprecated('Use status function insted of paymentStatus')
  this.paymentStatus,
  this.isLoading,
  required this.child,
  this.returnUrl,
  this.status,
  this.customerAddress1,
  this.customerAddress2,
  this.customerCity,
  this.customerState,
  this.customerPostCode,
  this.optA,
  this.optB,
  this.optC,
  this.optD,
}) : assert((transactionAmount != null ||
              transactionAmountFromTextField != null)
          ? true
          : throw "Add transactionAmount Or transactionAmountFromTextField");